LuciadCPillar 2024.0.04
|
Builder for the GeoPackage model create options. More...
#include <luciad/formats/geopackage/GeoPackageFeatureModelCreateOptions.h>
Public Member Functions | |
Builder (Builder &&other) noexcept | |
Builder (const Builder &other) | |
~Builder () | |
GeoPackageFeatureModelCreateOptions | build () |
Builds the GeoPackage feature model create options. More... | |
Builder & | coordinateReference (std::shared_ptr< CoordinateReference > coordinateReference) |
The coordinate reference which is used in the new IFeatureModel . More... | |
Builder & | dataType (DataType dataType) |
The data type on which the new IFeatureModel is based. More... | |
Builder & | luciadExtensionsEnabled (bool enable) |
Sets whether the GeoPackage feature model gets the Luciad specific extensions. More... | |
Builder & | operator= (Builder other) noexcept |
Builder & | overwriteExistingTables (bool overwrite) |
Whether an existing table with the same name should be overwritten, or if it should result in an error. More... | |
Builder for the GeoPackage model create options.
luciad::GeoPackageFeatureModelCreateOptions::Builder::Builder | ( | const Builder & | other | ) |
|
noexcept |
luciad::GeoPackageFeatureModelCreateOptions::Builder::~Builder | ( | ) |
GeoPackageFeatureModelCreateOptions luciad::GeoPackageFeatureModelCreateOptions::Builder::build | ( | ) |
Builds the GeoPackage feature model create options.
Setting the data type and coordinate reference is mandatory.
LogicException | if not all mandatory parameters are set. |
Builder & luciad::GeoPackageFeatureModelCreateOptions::Builder::coordinateReference | ( | std::shared_ptr< CoordinateReference > | coordinateReference | ) |
The coordinate reference
which is used in the new IFeatureModel
.
Calling this function is mandatory.
coordinateReference | the coordinate reference. |
luciad::InvalidArgumentException | coordinateReference may not be nullptr . |
The data type
on which the new IFeatureModel
is based.
Calling this function is mandatory.
dataType | the data type. |
Builder & luciad::GeoPackageFeatureModelCreateOptions::Builder::luciadExtensionsEnabled | ( | bool | enable | ) |
Sets whether the GeoPackage feature model gets the Luciad specific extensions.
These extensions include:
With these extensions the geopackage accepts the following geometries:
Patch
containing a CircleByCenterPoint
Patch
containing a Ellipse
EllipticalArc
Calling this function is optional. The default value is true.
enable | whether the new feature model has Luciad specific extensions. |
Builder & luciad::GeoPackageFeatureModelCreateOptions::Builder::overwriteExistingTables | ( | bool | overwrite | ) |
Whether an existing table with the same name should be overwritten, or if it should result in an error.
Defaults to false; which means a conflict results in an error. Setting this to true means the existing data is overwritten with an empty table.
overwrite | whether an existing table with the same name should be overwritten. |