Builder for the WFS options.
More...
#include <luciad/formats/wfs/WfsModelDecoderOptions.h>
Builder for the WFS options.
- Since
- 2026.0
◆ Builder() [1/2]
| luciad::WfsModelDecoderOptions::Builder::Builder |
( |
const Builder & | other | ) |
|
Copy constructor.
- Parameters
-
| other | the builder to copy. |
◆ Builder() [2/2]
| luciad::WfsModelDecoderOptions::Builder::Builder |
( |
Builder && | other | ) |
|
|
noexcept |
Move constructor.
- Parameters
-
| other | the builder to move from. |
◆ ~Builder()
| luciad::WfsModelDecoderOptions::Builder::~Builder |
( |
| ) |
|
◆ build()
Builds the options for the WFS model decoder.
- Returns
- the options for the WFS model decoder.
- Exceptions
-
◆ httpClient()
| Builder & luciad::WfsModelDecoderOptions::Builder::httpClient |
( |
std::shared_ptr< IHttpClient > | httpClient | ) |
|
Sets the http client to be used for fetching the data.
Calling this function is optional.
See related article for an example on how to customize HTTP requests when loading data.
- Parameters
-
| httpClient | HTTP client implementation to fetch the WFS resources. When nullptr the decoder uses its own HTTP client. |
- Returns
- this builder.
◆ operator=()
| Builder & luciad::WfsModelDecoderOptions::Builder::operator= |
( |
Builder | other | ) |
|
|
noexcept |
◆ outputFormat()
| Builder & luciad::WfsModelDecoderOptions::Builder::outputFormat |
( |
std::string | outputFormat | ) |
|
Sets the output format to request for GetFeature responses.
Calling this function is optional. If you leave it unset, no OUTPUTFORMAT query parameter is sent and the server default (GML) is used.
The value is an output format the server advertises, as listed by WfsFeatureType::getOutputFormats(), for example "application/json". A value that looks like JSON is decoded as GeoJSON. Any other value is decoded as GML. Only GML and GeoJSON responses can be decoded.
- Parameters
-
| outputFormat | the output format to request. Cannot be empty. |
- Returns
- this builder.
- Exceptions
-
- Since
- 2026.1