Package org.geotools.gml3.simple
Class GenericGeometryEncoder
- Object
-
- ObjectEncoder<T>
-
- GeometryEncoder<Geometry>
-
- GenericGeometryEncoder
-
public class GenericGeometryEncoder extends GeometryEncoder<Geometry>
Helper class that encodes the geometries within GeometryCollection- Author:
-
-
Constructor Summary
Constructors Constructor Description GenericGeometryEncoder(Encoder encoder)GenericGeometryEncoder(Encoder encoder, String gmlPrefix, String gmlUri)GenericGeometryEncoder(Encoder encoder, String gmlPrefix, String gmlUri, boolean encodeGmlId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(Geometry geometry, AttributesImpl atts, GMLWriter handler, String parentId)Encodes a geometry value with a given gmlId (implementations might choose to use it to generate gml:id attributes, depending on the GML version.-
Methods inherited from class GeometryEncoder
addGmlId, cloneWithGmlId, encode
-
-
-
-
Method Detail
-
encode
public void encode(Geometry geometry, AttributesImpl atts, GMLWriter handler, String parentId) 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)- Overrides:
encodein classGeometryEncoder<Geometry>- Parameters:
geometry- The Geometry to be encodedatts- Its attributeshandler- The handler used to write XMLparentId- If not null, some implementation will use to as the gml:id (and to build ids for the nested features)- Throws:
Exception
-
-