Class GenericGeometryEncoder


  • public class GenericGeometryEncoder
    extends GeometryEncoder<Geometry>
    Helper class that encodes the geometries within GeometryCollection
    Author:
    • Constructor Detail

      • GenericGeometryEncoder

        public GenericGeometryEncoder​(Encoder encoder)
      • GenericGeometryEncoder

        public GenericGeometryEncoder​(Encoder encoder,
                                      String gmlPrefix,
                                      String gmlUri)
      • GenericGeometryEncoder

        public GenericGeometryEncoder​(Encoder encoder,
                                      String gmlPrefix,
                                      String gmlUri,
                                      boolean encodeGmlId)
    • Method Detail

      • encode

        public void encode​(Geometry geometry,
                           AttributesImpl atts,
                           GMLWriter handler,
                           String parentId)
                    throws Exception
        Description copied from class: GeometryEncoder
        Encodes 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 to GeometryEncoder.encode(Geometry, AttributesImpl, GMLWriter)
        Overrides:
        encode in class GeometryEncoder<Geometry>
        Parameters:
        geometry - The Geometry to be encoded
        atts - Its attributes
        handler - The handler used to write XML
        parentId - If not null, some implementation will use to as the gml:id (and to build ids for the nested features)
        Throws:
        Exception