Class RingEncoder


  • public class RingEncoder
    extends GeometryEncoder<Geometry>
    Encodes a GML3 curved ring
    Author:
    Andrea Aime - GeoSolutions
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RingEncoder​(Encoder e, String gmlPrefix, String gmlUri)  
      protected RingEncoder​(Encoder e, String gmlPrefix, String gmlUri, boolean encodeGmlId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void encode​(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 void encodeMembers​(Geometry geometry, GMLWriter handler, String gmlId)  
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RingEncoder

        protected RingEncoder​(Encoder e,
                              String gmlPrefix,
                              String gmlUri)
      • RingEncoder

        protected RingEncoder​(Encoder e,
                              String gmlPrefix,
                              String gmlUri,
                              boolean encodeGmlId)
    • Method Detail

      • encode

        public void encode​(Geometry geometry,
                           AttributesImpl atts,
                           GMLWriter handler,
                           String gmlId)
                    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)
        Parameters:
        geometry - The Geometry to be encoded
        atts - Its attributes
        handler - The handler used to write XML
        gmlId - 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:
        SAXException
        Exception