public static class GML2FeatureCollectionEncoderDelegate.GML2Delegate extends Object implements GMLDelegate
| Constructor and Description |
|---|
GML2Delegate(Encoder encoder) |
| Modifier and Type | Method and Description |
|---|---|
EnvelopeEncoder |
createEnvelopeEncoder(Encoder e)
Creates the envelope encoder
|
void |
endFeature(GMLWriter handler)
Closes a single feature
|
void |
endFeatures(GMLWriter handler)
Closes a collection of features
|
void |
endTuple(GMLWriter output)
Closes a tuple
|
boolean |
forceDecimalEncoding()
Returns true if coordinates should be encoded as xs:decimal instead of xs:double
|
List |
getFeatureProperties(SimpleFeature f,
XSDElementDeclaration element,
Encoder e)
Lists all properties that should be encoded for a given feature
|
String |
getGmlPrefix()
The GML prefix used by this encoding session
|
int |
getNumDecimals()
Number of decimals used in the output
|
XSD |
getSchema()
The XSD schema used by this GML version
|
void |
initFidAttribute(AttributesImpl atts)
Initializes an empty feature id attribute, the attribute must be the first one in "atts"
|
boolean |
padWithZeros()
Returns true if coordinates should be right-padded with zeros up to the requested number of
decimals.
|
void |
registerGeometryEncoders(Map<Class,GeometryEncoder> 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)
|
void |
setGeometryDimensionAttribute(AttributesImpl srsatts,
int dimension)
Sets the dimensions attribute, if available for the current GML version
|
void |
setSrsNameAttribute(AttributesImpl atts,
CoordinateReferenceSystem crs)
Sets the SRS attribute with the proper syntax for the given GML version
|
void |
startFeature(GMLWriter handler)
Writes whatever per feature preamble is needed in this GML version
|
void |
startFeatures(GMLWriter handler)
Writes whatever per collection preamble is needed in this GML version
|
void |
startTuple(GMLWriter output)
Writes the tuple preamble
|
boolean |
supportsTuples()
Returns true if tuple encoding is supported in this standard
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEncodeMeasurespublic GML2Delegate(Encoder encoder)
public List getFeatureProperties(SimpleFeature f, XSDElementDeclaration element, Encoder e)
GMLDelegategetFeatureProperties in interface GMLDelegatef - A sample featureelement - The xml element holding the feature typee - The encoderpublic EnvelopeEncoder createEnvelopeEncoder(Encoder e)
GMLDelegatecreateEnvelopeEncoder in interface GMLDelegatepublic void initFidAttribute(AttributesImpl atts)
GMLDelegateinitFidAttribute in interface GMLDelegatepublic void startFeatures(GMLWriter handler)
GMLDelegatestartFeatures in interface GMLDelegatepublic void startFeature(GMLWriter handler) throws Exception
GMLDelegatestartFeature in interface GMLDelegateExceptionpublic void endFeature(GMLWriter handler) throws Exception
GMLDelegateendFeature in interface GMLDelegateExceptionpublic void endFeatures(GMLWriter handler)
GMLDelegateendFeatures in interface GMLDelegatepublic void setSrsNameAttribute(AttributesImpl atts, CoordinateReferenceSystem crs)
GMLDelegatesetSrsNameAttribute in interface GMLDelegatepublic void setGeometryDimensionAttribute(AttributesImpl srsatts, int dimension)
GMLDelegatesetGeometryDimensionAttribute in interface GMLDelegatepublic void registerGeometryEncoders(Map<Class,GeometryEncoder> encoders, Encoder encoder)
GMLDelegateregisterGeometryEncoders in interface GMLDelegatepublic String getGmlPrefix() throws Exception
GMLDelegategetGmlPrefix in interface GMLDelegateExceptionpublic boolean supportsTuples()
GMLDelegatesupportsTuples in interface GMLDelegatepublic void startTuple(GMLWriter output)
GMLDelegatestartTuple in interface GMLDelegatepublic void endTuple(GMLWriter output)
GMLDelegateendTuple in interface GMLDelegatepublic XSD getSchema()
GMLDelegategetSchema in interface GMLDelegatepublic int getNumDecimals()
GMLDelegategetNumDecimals in interface GMLDelegatepublic boolean forceDecimalEncoding()
GMLDelegateforceDecimalEncoding in interface GMLDelegatepublic boolean padWithZeros()
GMLDelegatepadWithZeros in interface GMLDelegateCopyright © 1996–2019 Geotools. All rights reserved.