Class TLcdGMLTransformerBuilder
TLcdGMLTransformer
instances.- Since:
- 11.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
This interface provides control over the generation of gml:id values for GML features. -
Constructor Summary
ConstructorDescriptionTLcdGMLTransformerBuilder
(TLcdDataModel aDataModel) Creates a builder for the given source data model. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a new GML transformation.Directs the builder to construct a GML transformer that always uses linear GML elements.gmlDataModel
(TLcdDataModel aGMLDataModel) Sets the GML data model that the target data model should extend.idFactory
(TLcdGMLTransformerBuilder.IdFactory aIdFactory) Sets theIdFactory
that this builder should use.Directs the builder to create a GML transformer that omits theFeatureCollection
type for the used GML data model.targetNamespaceURI
(String aNamespaceURI) Sets the target namespace for the GML application schema that is to be created.Directs the builder to construct a GML transformer that follows the GML simple features profile.
-
Constructor Details
-
TLcdGMLTransformerBuilder
Creates a builder for the given source data model. This data model should NOT depend on GML.- Parameters:
aDataModel
- the source data model
-
-
Method Details
-
idFactory
Sets theIdFactory
that this builder should use. If no factory is provided, a simple default implementation is used.- Parameters:
aIdFactory
- the id factory to be used by the GML transformation- Returns:
- this builder object
-
useSimpleFeaturesProfile
Directs the builder to construct a GML transformer that follows the GML simple features profile. Simple features are primarily features whose geometry is limited to points, lines, and polygons (and collections of these).The compliance level is derived from the source model.
This setting only applies to GML version 3.1 and 3.2.- Returns:
- this builder object
-
forceUseOfLinearGmlElements
Directs the builder to construct a GML transformer that always uses linear GML elements. This ensures that lines and polygons (i.e.,ILcdPolyline
andILcdPolygon
instances) are respectively encoded as GMLLineString
andLinearRing
elements, regardless of the interpolation of the input geometries defined byILcdCurve.getInterpolation()
. Note that this interpolation does define the resulting interpolation of the linear GML elements - e.g., a geodeticILcdPolyline
results in a GMLLineString
withgeodesic interpolation
Without forcing the use of linear GML elements, lines and polygons with a geodesic interpolation are encoded as GML
GeodesicString
elements.Forcing the use linear GML elements can be useful in case of 3rd party software components that do not support the GML
GeodesicString
element. Note that this only changes the type of GML element being used; it does not trigger any discretization step.
This setting only applies to GML version 3.1 and 3.2. The default setting is false.- Returns:
- this builder object
- Since:
- 2019.0
-
omitFeatureCollectionType
Directs the builder to create a GML transformer that omits theFeatureCollection
type for the used GML data model. By default, this type is included, aligned with the default GML encoding behavior to use an encompassing GML feature collection element that contains the GML features.Omitting this type can be required if a custom
FeatureCollection
type is used by the encoder. This is the case in a WFS environment, in which the GML features are encoded in a WFS-specificFeatureCollection
element.- Returns:
- this builder object
- Since:
- 2021.0
-
targetNamespaceURI
Sets the target namespace for the GML application schema that is to be created. This will also be the name of the target data model.- Parameters:
aNamespaceURI
- the namespace to use for the GML application schema- Returns:
- this builder object
-
gmlDataModel
Sets the GML data model that the target data model should extend. The data model should be one ofTLcdGML2DataTypes.getDataModel()
TLcdGML31DataTypes.getDataModel()
TLcdGML32DataTypes.getDataModel()
- Parameters:
aGMLDataModel
- the GML data model that should be extended- Returns:
- this builder object
-
build
Creates a new GML transformation.- Returns:
- a new GML transformation
-