Class GeometryParser


  • public final class GeometryParser
    extends java.lang.Object
    An utility class with a geometry parser methods supporting different shape representation formats
    • Constructor Summary

      Constructors 
      Constructor Description
      GeometryParser​(boolean rightOrientation, boolean coerce, boolean ignoreZValue)  
    • Method Summary

      Modifier and Type Method Description
      GeometryFormat geometryFormat​(XContentParser parser)
      Returns a geometry format object that can parse and then serialize the object back to the same format.
      Geometry parse​(XContentParser parser)
      Parses supplied XContent into Geometry
      • Methods inherited from class java.lang.Object

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

      • GeometryParser

        public GeometryParser​(boolean rightOrientation,
                              boolean coerce,
                              boolean ignoreZValue)
    • Method Detail

      • parse

        public Geometry parse​(XContentParser parser)
                       throws java.io.IOException,
                              java.text.ParseException
        Parses supplied XContent into Geometry
        Throws:
        java.io.IOException
        java.text.ParseException
      • geometryFormat

        public GeometryFormat geometryFormat​(XContentParser parser)
        Returns a geometry format object that can parse and then serialize the object back to the same format.