Builder for creating luciad::WmtsDataSource
.
More...
#include <luciad/formats/wmts/WmtsDataSource.h>
Builder for creating luciad::WmtsDataSource
.
◆ Builder() [1/2]
luciad::WmtsDataSource::Builder::Builder |
( |
const Builder & |
other | ) |
|
◆ Builder() [2/2]
luciad::WmtsDataSource::Builder::Builder |
( |
Builder && |
other | ) |
|
|
noexcept |
◆ ~Builder()
luciad::WmtsDataSource::Builder::~Builder |
( |
| ) |
|
◆ build()
std::shared_ptr< WmtsDataSource > luciad::WmtsDataSource::Builder::build |
( |
| ) |
|
Build the wmts data source.
After calling this function, this builder should no longer be used.
- Exceptions
-
- Returns
- the wmts data source.
◆ format()
Builder & luciad::WmtsDataSource::Builder::format |
( |
std::string |
format | ) |
|
Sets the preferred format to request images.
If specified and if the layer offers specified format, it will be selected as a preference when requesting images.
- Parameters
-
format | Preferred format to request images. |
◆ layer()
Builder & luciad::WmtsDataSource::Builder::layer |
( |
std::string |
layer | ) |
|
Sets the layer to use within the WMTS data provided by the source.
An empty layer name will link to the first layer described in the capabilities.
- Parameters
-
layer | Layer to use within the WMTS data provided by the source. |
◆ operator=()
◆ style()
Builder & luciad::WmtsDataSource::Builder::style |
( |
std::string |
style | ) |
|
Sets the style to use within the WMTS data provided by the source.
An empty style name will link to the default layer style.
- Parameters
-
style | Style to use within the WMTS data provided by the source. |
◆ url()
Builder & luciad::WmtsDataSource::Builder::url |
( |
std::string |
url | ) |
|
Sets the base URL of the WMTS data source.
Calling this function is mandatory.
- Parameters
-
url | the base URL of the WMTS data source. Calling this function is mandatory. |
- Returns
- this builder.