public interface GMLDelegate
Modifier and Type | Method and Description |
---|---|
ObjectEncoder |
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
|
default 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<? 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)
|
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 handler)
Writes the tuple preamble
|
boolean |
supportsTuples()
Returns true if tuple encoding is supported in this standard
|
List getFeatureProperties(SimpleFeature f, XSDElementDeclaration element, Encoder e)
f
- A sample featureelement
- The xml element holding the feature typee
- The encoderObjectEncoder createEnvelopeEncoder(Encoder e)
void registerGeometryEncoders(Map<Class,GeometryEncoder<? extends Geometry>> encoders, Encoder encoder)
void setSrsNameAttribute(AttributesImpl atts, CoordinateReferenceSystem crs)
void setGeometryDimensionAttribute(AttributesImpl srsatts, int dimension)
void initFidAttribute(AttributesImpl atts)
void startFeatures(GMLWriter handler) throws Exception
Exception
void startFeature(GMLWriter handler) throws Exception
Exception
void endFeatures(GMLWriter handler) throws Exception
Exception
void endFeature(GMLWriter handler) throws Exception
Exception
String getGmlPrefix() throws Exception
Exception
boolean supportsTuples()
void startTuple(GMLWriter handler) throws SAXException
SAXException
void endTuple(GMLWriter handler) throws SAXException
SAXException
XSD getSchema()
int getNumDecimals()
boolean forceDecimalEncoding()
boolean padWithZeros()
default boolean getEncodeMeasures()
Copyright © 1996–2023 Geotools. All rights reserved.