Package com.luciad.format.gmlcommon.transformation
Provides support for transforming domain objects and model to and from GML.
This package provides support to transform data models from and to GML. The transformation is invertible; this means domain object transformed into GML can be transformed back into instances of their original type. Transformations are available for GML versions 3.2, 3.1 and 2.0. For version 3.2 and 3.1 a transformation in accordance with the GML simple feature profile is also available. The GML transformation is done automatically by the implementation. However, it can be customized by adding appropriate annotations on the source data model.
The main entry class for this package is TLcdGMLTransformer
.
This class is a specialized TLcdTransformer
implementation that can transform data objects from the source data model into GML
objects and vice versa. The TLcdGMLTransformer
can also output the GML
application schema. New instances of TLcdGMLTransformer
are created using
the TLcdGMLTransformerBuilder
.
This package also defines a number of abstract annotation classes (such as e.g.
ALcdGMLNameAnnotation
).
There is a concrete subclass of each of these annotation classes for each GML version
(such as e.g. TLcdGML32NameAnnotation
, TLcdGML31NameAnnotation
, etc.).
These annotation classes can be added to the source data model to customize
the GML transformation.
TLcdGMLApplicationModelEncoder
uses
the TLcdGMLTransformer
to encode an entire ILcdModel
as a GML document. Its counterpart, the TLcdGMLApplicationModelDecoder
,
can decode these GML documents back into the original source model.
- Since:
- 11.0
-
ClassDescriptionAnnotation that can be added to a data type.This annotation can be added to data types and data properties.This annotation can be added to data models, data types and data properties.This annotation can be added to a TLcdDataProperty.Maps and transforms a source data type to a given (GML) target data type.
If this annotation is present on a data type, TLcdGMLTransformer will map and transform that type to and from the given target type using the given transformation.Decodes GML documents into customILcdDataObject
-enabled models.EncodesILcdDataObject
-enabledILcdModel
instances to GML documents.SpecializedTLcdTransformer
can transforms objects from a given source data model into GML and vice versa.Builder forTLcdGMLTransformer
instances.This interface provides control over the generation of gml:id values for GML features.