Package org.geotools.gml2.simple
Class GML2FeatureCollectionEncoderDelegate.GML2Delegate
Object
GML2Delegate
- All Implemented Interfaces:
GMLDelegate
- Enclosing class:
- GML2FeatureCollectionEncoderDelegate
public static class GML2FeatureCollectionEncoderDelegate.GML2Delegate
extends Object
implements GMLDelegate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEnvelopeEncoderCreates the envelope encodervoidendFeature(GMLWriter handler) Closes a single featurevoidendFeatures(GMLWriter handler) Closes a collection of featuresvoidCloses a tuplebooleanReturns true if coordinates should be encoded as xs:decimal instead of xs:doublegetFeatureProperties(SimpleFeature f, XSDElementDeclaration element, Encoder e) Lists all properties that should be encoded for a given featureThe GML prefix used by this encoding sessionintNumber of decimals used in the outputThe XSD schema used by this GML versionvoidInitializes an empty feature id attribute, the attribute must be the first one in "atts"booleanReturns true if coordinates should be right-padded with zeros up to the requested number of decimals.voidregisterGeometryEncoders(Map<Class, GeometryEncoder<? extends Geometry>> encoders, Encoder encoder) Registers all the geometry encoders for this GML version in a map, by geometry class (different versions support different types of geometries, e.g., GML3 supports also curved ones)voidsetGeometryDimensionAttribute(AttributesImpl srsatts, int dimension) Sets the dimensions attribute, if available for the current GML versionvoidSets the SRS attribute with the proper syntax for the given GML versionvoidstartFeature(GMLWriter handler) Writes whatever per feature preamble is needed in this GML versionvoidstartFeatures(GMLWriter handler) Writes whatever per collection preamble is needed in this GML versionvoidstartTuple(GMLWriter output) Writes the tuple preamblebooleanReturns true if tuple encoding is supported in this standardMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GMLDelegate
getEncodeMeasures
-
Constructor Details
-
GML2Delegate
-
-
Method Details
-
getFeatureProperties
Description copied from interface:GMLDelegateLists all properties that should be encoded for a given feature- Specified by:
getFeaturePropertiesin interfaceGMLDelegate- Parameters:
f- A sample featureelement- The xml element holding the feature typee- The encoder
-
createEnvelopeEncoder
Description copied from interface:GMLDelegateCreates the envelope encoder- Specified by:
createEnvelopeEncoderin interfaceGMLDelegate
-
initFidAttribute
Description copied from interface:GMLDelegateInitializes an empty feature id attribute, the attribute must be the first one in "atts"- Specified by:
initFidAttributein interfaceGMLDelegate
-
startFeatures
Description copied from interface:GMLDelegateWrites whatever per collection preamble is needed in this GML version- Specified by:
startFeaturesin interfaceGMLDelegate
-
startFeature
Description copied from interface:GMLDelegateWrites whatever per feature preamble is needed in this GML version- Specified by:
startFeaturein interfaceGMLDelegate- Throws:
Exception
-
endFeature
Description copied from interface:GMLDelegateCloses a single feature- Specified by:
endFeaturein interfaceGMLDelegate- Throws:
Exception
-
endFeatures
Description copied from interface:GMLDelegateCloses a collection of features- Specified by:
endFeaturesin interfaceGMLDelegate
-
setSrsNameAttribute
Description copied from interface:GMLDelegateSets the SRS attribute with the proper syntax for the given GML version- Specified by:
setSrsNameAttributein interfaceGMLDelegate
-
setGeometryDimensionAttribute
Description copied from interface:GMLDelegateSets the dimensions attribute, if available for the current GML version- Specified by:
setGeometryDimensionAttributein interfaceGMLDelegate
-
registerGeometryEncoders
public void registerGeometryEncoders(Map<Class, GeometryEncoder<? extends Geometry>> encoders, Encoder encoder) Description copied from interface:GMLDelegateRegisters all the geometry encoders for this GML version in a map, by geometry class (different versions support different types of geometries, e.g., GML3 supports also curved ones)- Specified by:
registerGeometryEncodersin interfaceGMLDelegate
-
getGmlPrefix
Description copied from interface:GMLDelegateThe GML prefix used by this encoding session- Specified by:
getGmlPrefixin interfaceGMLDelegate- Throws:
Exception
-
supportsTuples
public boolean supportsTuples()Description copied from interface:GMLDelegateReturns true if tuple encoding is supported in this standard- Specified by:
supportsTuplesin interfaceGMLDelegate
-
startTuple
Description copied from interface:GMLDelegateWrites the tuple preamble- Specified by:
startTuplein interfaceGMLDelegate
-
endTuple
Description copied from interface:GMLDelegateCloses a tuple- Specified by:
endTuplein interfaceGMLDelegate
-
getSchema
Description copied from interface:GMLDelegateThe XSD schema used by this GML version- Specified by:
getSchemain interfaceGMLDelegate
-
getNumDecimals
public int getNumDecimals()Description copied from interface:GMLDelegateNumber of decimals used in the output- Specified by:
getNumDecimalsin interfaceGMLDelegate
-
forceDecimalEncoding
public boolean forceDecimalEncoding()Description copied from interface:GMLDelegateReturns true if coordinates should be encoded as xs:decimal instead of xs:double- Specified by:
forceDecimalEncodingin interfaceGMLDelegate
-
padWithZeros
public boolean padWithZeros()Description copied from interface:GMLDelegateReturns true if coordinates should be right-padded with zeros up to the requested number of decimals.- Specified by:
padWithZerosin interfaceGMLDelegate
-