LuciadCPillar C# 2024.0.04
Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder Class Reference

Builder for the GeoPackage model create options. More...

Inheritance diagram for Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder:

Public Member Functions

 Builder (Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder other)
 
Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions Build ()
 Builds the GeoPackage feature model create options. More...
 
Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder CoordinateReference (Luciad.Geodesy.CoordinateReference coordinateReference)
 The coordinate reference which is used in the new IFeatureModel. More...
 
Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder DataType (Luciad.Datamodels.DataType dataType)
 The data type on which the new IFeatureModel is based. More...
 
void Dispose ()
 
Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder LuciadExtensionsEnabled (bool enable)
 Sets whether the GeoPackage feature model gets the Luciad specific extensions. More...
 
Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder OverwriteExistingTables (bool overwrite)
 Whether an existing table with the same name should be overwritten, or if it should result in an error. More...
 

Detailed Description

Builder for the GeoPackage model create options.

Since
2024.0

Constructor & Destructor Documentation

◆ Builder()

Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder.Builder ( Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder  other)
inline

Member Function Documentation

◆ Build()

Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder.Build ( )
inline

Builds the GeoPackage feature model create options.

Setting the data type and coordinate reference is mandatory.

Returns
the options for the GeoPackage model encoder.
Exceptions
System.InvalidOperationExceptionif not all mandatory parameters are set.

◆ CoordinateReference()

Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder.CoordinateReference ( Luciad.Geodesy.CoordinateReference  coordinateReference)
inline

The coordinate reference which is used in the new IFeatureModel.

Calling this function is mandatory.

Parameters
coordinateReferencethe coordinate reference.
Returns
this builder.
Exceptions
System.ArgumentExceptioncoordinateReference may not be null.

◆ DataType()

Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder.DataType ( Luciad.Datamodels.DataType  dataType)
inline

The data type on which the new IFeatureModel is based.

Calling this function is mandatory.

Parameters
dataTypethe data type.
Returns
this builder.

◆ Dispose()

void Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder.Dispose ( )
inline

◆ LuciadExtensionsEnabled()

Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder.LuciadExtensionsEnabled ( bool  enable)
inline

Sets whether the GeoPackage feature model gets the Luciad specific extensions.

These extensions include:

  • lcdx_geom_CIRCLE the Luciad circle geometry.
  • lcdx_geom_ELLIPSE the Luciad ellipse geometry.
  • lcdx_geom_ELLIPTICALARC the Luciad elliptical arc geometry.

With these extensions the geopackage accepts the following geometries:

Calling this function is optional. The default value is true.

Parameters
enablewhether the new feature model has Luciad specific extensions.
Returns
this builder.

◆ OverwriteExistingTables()

Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder Luciad.Formats.Geopackage.GeoPackageFeatureModelCreateOptions.Builder.OverwriteExistingTables ( bool  overwrite)
inline

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.

Parameters
overwritewhether an existing table with the same name should be overwritten.
Returns
this builder.
See also
GeoPackageModelEncoder.CreateEmptyGeoPackageDataSet for details on overwriting.