LuciadCPillar 2024.0.08
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
luciad::WmtsCapabilities Class Referencefinal

Encapsulates the capabilities of a WMTS source. More...

#include <luciad/formats/wmts/WmtsCapabilities.h>

Public Member Functions

 ~WmtsCapabilities ()
 
const std::vector< std::shared_ptr< WmtsLayer > > & getLayers () const
 Returns the layers found during capabilities parsing. More...
 

Static Public Member Functions

static luciad::expected< std::shared_ptr< WmtsCapabilities >, ErrorInfogetCapabilities (const std::string &url)
 Returns the capabilities of a given WMTS url if it can be retrieved. More...
 
static luciad::expected< std::shared_ptr< WmtsCapabilities >, ErrorInfogetCapabilities (const std::string &url, const WmtsModelDecoderOptions &options)
 Returns the capabilities of a given WMTS url if it can be retrieved. More...
 

Detailed Description

Encapsulates the capabilities of a WMTS source.

Remarks
See WmtsCapabilities::getCapabilities for a way of obtaining such information.

Constructor & Destructor Documentation

◆ ~WmtsCapabilities()

luciad::WmtsCapabilities::~WmtsCapabilities ( )

Member Function Documentation

◆ getCapabilities() [1/2]

static luciad::expected< std::shared_ptr< WmtsCapabilities >, ErrorInfo > luciad::WmtsCapabilities::getCapabilities ( const std::string &  url)
static

Returns the capabilities of a given WMTS url if it can be retrieved.

Parameters
urlThe source's base url from which capabilities have to be retrieved.
Returns
filled capabilities if it was possible to retrieve them, or a description of the problem if it wasn't possible.

◆ getCapabilities() [2/2]

static luciad::expected< std::shared_ptr< WmtsCapabilities >, ErrorInfo > luciad::WmtsCapabilities::getCapabilities ( const std::string &  url,
const WmtsModelDecoderOptions options 
)
static

Returns the capabilities of a given WMTS url if it can be retrieved.

Parameters
urlThe source's base url from which capabilities have to be retrieved.
optionsOptions for decoding WMTS data, e.g. an optional http client implementation to send HTTP requests when fetching WMTS resources.
Returns
filled capabilities if it was possible to retrieve them, or a description of the problem if it wasn't possible.
Since
2023.0

◆ getLayers()

const std::vector< std::shared_ptr< WmtsLayer > > & luciad::WmtsCapabilities::getLayers ( ) const

Returns the layers found during capabilities parsing.

Returns
the array of layers in the capabilities.