public static class GML32FeatureCollectionEncoderDelegate.GML32Delegate extends Object implements GMLDelegate
| Modifier and Type | Field and Description |
|---|---|
protected QualifiedName |
member |
| Constructor and Description |
|---|
GML32Delegate(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 handler)
Closes a tuple
|
boolean |
forceDecimalEncoding()
Returns true if coordinates should be encoded as xs:decimal instead of xs:double
|
boolean |
getEncodeMeasures()
Controls if coordinates measures should be included in WFS outputs.
|
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 atts,
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 handler)
Writes the tuple preamble
|
boolean |
supportsTuples()
Returns true if tuple encoding is supported in this standard
|
protected QualifiedName member
public GML32Delegate(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 setSrsNameAttribute(AttributesImpl atts, CoordinateReferenceSystem crs)
GMLDelegatesetSrsNameAttribute in interface GMLDelegatepublic void setGeometryDimensionAttribute(AttributesImpl atts, int dimension)
GMLDelegatesetGeometryDimensionAttribute in interface GMLDelegatepublic void initFidAttribute(AttributesImpl atts)
GMLDelegateinitFidAttribute in interface GMLDelegatepublic void startFeatures(GMLWriter handler) throws Exception
GMLDelegatestartFeatures in interface GMLDelegateExceptionpublic void startFeature(GMLWriter handler) throws Exception
GMLDelegatestartFeature in interface GMLDelegateExceptionpublic void endFeature(GMLWriter handler) throws Exception
GMLDelegateendFeature in interface GMLDelegateExceptionpublic void endFeatures(GMLWriter handler) throws Exception
GMLDelegateendFeatures in interface GMLDelegateExceptionpublic 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 handler) throws SAXException
GMLDelegatestartTuple in interface GMLDelegateSAXExceptionpublic void endTuple(GMLWriter handler) throws SAXException
GMLDelegateendTuple in interface GMLDelegateSAXExceptionpublic XSD getSchema()
GMLDelegategetSchema in interface GMLDelegatepublic int getNumDecimals()
GMLDelegategetNumDecimals in interface GMLDelegatepublic boolean forceDecimalEncoding()
GMLDelegateforceDecimalEncoding in interface GMLDelegatepublic boolean getEncodeMeasures()
GMLDelegategetEncodeMeasures in interface GMLDelegatepublic boolean padWithZeros()
GMLDelegatepadWithZeros in interface GMLDelegateCopyright © 1996–2019 Geotools. All rights reserved.