public class TLcdGMLTransformerBuilder extends Object
TLcdGMLTransformer
instances.Modifier and Type | Class and Description |
---|---|
static interface |
TLcdGMLTransformerBuilder.IdFactory
This interface provides control over the generation of gml:id
values for GML features.
|
Constructor and Description |
---|
TLcdGMLTransformerBuilder(TLcdDataModel aDataModel)
Creates a builder for the given source data model.
|
Modifier and Type | Method and Description |
---|---|
TLcdGMLTransformer |
build()
Creates a new GML transformation.
|
TLcdGMLTransformerBuilder |
forceUseOfLinearGmlElements()
Directs the builder to construct a GML transformer that always uses linear GML elements.
|
TLcdGMLTransformerBuilder |
gmlDataModel(TLcdDataModel aGMLDataModel)
Sets the GML data model that the target data model should extend.
|
TLcdGMLTransformerBuilder |
idFactory(TLcdGMLTransformerBuilder.IdFactory aIdFactory)
Sets the
IdFactory that this builder should use. |
TLcdGMLTransformerBuilder |
omitFeatureCollectionType()
Directs the builder to create a GML transformer that omits the
FeatureCollection type
for the used GML data model. |
TLcdGMLTransformerBuilder |
targetNamespaceURI(String aNamespaceURI)
Sets the target namespace for the GML application schema that is to be
created.
|
TLcdGMLTransformerBuilder |
useSimpleFeaturesProfile()
Directs the builder to construct a GML transformer that follows the GML simple features profile.
|
public TLcdGMLTransformerBuilder(TLcdDataModel aDataModel)
aDataModel
- the source data modelpublic TLcdGMLTransformerBuilder idFactory(TLcdGMLTransformerBuilder.IdFactory aIdFactory)
IdFactory
that this builder should use. If no
factory is provided, a simple default implementation is used.aIdFactory
- the id factory to be used by the GML transformationpublic TLcdGMLTransformerBuilder useSimpleFeaturesProfile()
The compliance level is derived from the source model.
This setting only applies to GML version 3.1 and 3.2.
public TLcdGMLTransformerBuilder forceUseOfLinearGmlElements()
ILcdPolyline
and
ILcdPolygon
instances) are respectively encoded as GML LineString
and
LinearRing
elements, regardless of the interpolation of the input geometries defined by
ILcdCurve.getInterpolation()
. Note that this interpolation does define the resulting interpolation of the
linear GML elements - e.g., a geodetic ILcdPolyline
results in a GML
LineString
with geodesic 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.
public TLcdGMLTransformerBuilder omitFeatureCollectionType()
FeatureCollection
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-specific
FeatureCollection
element.
public TLcdGMLTransformerBuilder targetNamespaceURI(String aNamespaceURI)
aNamespaceURI
- the namespace to use for the GML application schemapublic TLcdGMLTransformerBuilder gmlDataModel(TLcdDataModel aGMLDataModel)
TLcdGML2DataTypes.getDataModel()
TLcdGML31DataTypes.getDataModel()
TLcdGML32DataTypes.getDataModel()
aGMLDataModel
- the GML data model that should be extendedpublic TLcdGMLTransformer build()