Package org.geotools.gml3.simple
Class RingEncoder
Encodes a GML3 curved ring
- Author:
- Andrea Aime - GeoSolutions
-
Field Summary
Fields inherited from class ObjectEncoder
encoder -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRingEncoder(Encoder e, String gmlPrefix, String gmlUri) protectedRingEncoder(Encoder e, String gmlPrefix, String gmlUri, boolean encodeGmlId) -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(Geometry geometry, AttributesImpl atts, GMLWriter handler, String gmlId) Encodes a geometry value with a given gmlId (implementations might choose to use it to generate gml:id attributes, depending on the GML version.protected voidencodeMembers(Geometry geometry, GMLWriter handler, String gmlId) Methods inherited from class GeometryEncoder
addGmlId, cloneWithGmlId, encode
-
Constructor Details
-
RingEncoder
-
RingEncoder
-
-
Method Details
-
encode
public void encode(Geometry geometry, AttributesImpl atts, GMLWriter handler, String gmlId) throws Exception Description copied from class:GeometryEncoderEncodes a geometry value with a given gmlId (implementations might choose to use it to generate gml:id attributes, depending on the GML version. The default implementation does not use gmlId and simply delegates toGeometryEncoder.encode(Geometry, AttributesImpl, GMLWriter)- Parameters:
geometry- The Geometry to be encodedatts- Its attributeshandler- The handler used to write XMLgmlId- If not null, some implementation will use to as the gml:id (and to build ids for the nested features)- Throws:
Exception
-
encodeMembers
protected void encodeMembers(Geometry geometry, GMLWriter handler, String gmlId) throws SAXException, Exception - Throws:
SAXExceptionException
-