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)
GMLDelegate
getFeatureProperties
in interface GMLDelegate
f
- A sample featureelement
- The xml element holding the feature typee
- The encoderpublic EnvelopeEncoder createEnvelopeEncoder(Encoder e)
GMLDelegate
createEnvelopeEncoder
in interface GMLDelegate
public void setSrsNameAttribute(AttributesImpl atts, CoordinateReferenceSystem crs)
GMLDelegate
setSrsNameAttribute
in interface GMLDelegate
public void setGeometryDimensionAttribute(AttributesImpl atts, int dimension)
GMLDelegate
setGeometryDimensionAttribute
in interface GMLDelegate
public void initFidAttribute(AttributesImpl atts)
GMLDelegate
initFidAttribute
in interface GMLDelegate
public void startFeatures(GMLWriter handler) throws Exception
GMLDelegate
startFeatures
in interface GMLDelegate
Exception
public void startFeature(GMLWriter handler) throws Exception
GMLDelegate
startFeature
in interface GMLDelegate
Exception
public void endFeature(GMLWriter handler) throws Exception
GMLDelegate
endFeature
in interface GMLDelegate
Exception
public void endFeatures(GMLWriter handler) throws Exception
GMLDelegate
endFeatures
in interface GMLDelegate
Exception
public void registerGeometryEncoders(Map<Class,GeometryEncoder> encoders, Encoder encoder)
GMLDelegate
registerGeometryEncoders
in interface GMLDelegate
public String getGmlPrefix() throws Exception
GMLDelegate
getGmlPrefix
in interface GMLDelegate
Exception
public boolean supportsTuples()
GMLDelegate
supportsTuples
in interface GMLDelegate
public void startTuple(GMLWriter handler) throws SAXException
GMLDelegate
startTuple
in interface GMLDelegate
SAXException
public void endTuple(GMLWriter handler) throws SAXException
GMLDelegate
endTuple
in interface GMLDelegate
SAXException
public XSD getSchema()
GMLDelegate
getSchema
in interface GMLDelegate
public int getNumDecimals()
GMLDelegate
getNumDecimals
in interface GMLDelegate
public boolean forceDecimalEncoding()
GMLDelegate
forceDecimalEncoding
in interface GMLDelegate
public boolean getEncodeMeasures()
GMLDelegate
getEncodeMeasures
in interface GMLDelegate
public boolean padWithZeros()
GMLDelegate
padWithZeros
in interface GMLDelegate
Copyright © 1996–2019 Geotools. All rights reserved.