Class WKTReader2


  • public class WKTReader2
    extends WKTReader
    Create a geometry from SQL Multi-Media Extension Well-Known Text which allows curves.
    See Also:
    WKTWriter2
    • Constructor Summary

      Constructors 
      Constructor Description
      WKTReader2()
      Creates a reader that creates objects using the default GeometryFactory.
      WKTReader2​(double tolerance)
      Creates a reader that creates objects using the default GeometryFactory.
      WKTReader2​(GeometryFactory geometryFactory)
      Creates a reader that creates objects using the given GeometryFactory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Geometry read​(Reader reader)
      Reads a Well-Known Text representation of a Geometry from a Reader.
      Geometry read​(String wellKnownText)
      Reads a Well-Known Text representation of a Geometry from a String.
      • Methods inherited from class WKTReader

        setFixStructure, setIsOldJtsCoordinateSyntaxAllowed, setIsOldJtsMultiPointSyntaxAllowed
      • Methods inherited from class Object

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

      • WKTReader2

        public WKTReader2()
        Creates a reader that creates objects using the default GeometryFactory.
      • WKTReader2

        public WKTReader2​(double tolerance)
        Creates a reader that creates objects using the default GeometryFactory.
      • WKTReader2

        public WKTReader2​(GeometryFactory geometryFactory)
        Creates a reader that creates objects using the given GeometryFactory.
        Parameters:
        geometryFactory - the factory used to create Geometrys.
    • Method Detail

      • read

        public Geometry read​(String wellKnownText)
                      throws ParseException
        Reads a Well-Known Text representation of a Geometry from a String.
        Overrides:
        read in class WKTReader
        Parameters:
        wellKnownText - one or more strings (see the OpenGIS Simple Features Specification) separated by whitespace
        Returns:
        a Geometry specified by wellKnownText
        Throws:
        ParseException - if a parsing problem occurs
      • read

        public Geometry read​(Reader reader)
                      throws ParseException
        Reads a Well-Known Text representation of a Geometry from a Reader.
        Overrides:
        read in class WKTReader
        Parameters:
        reader - a Reader which will return a string (see the OpenGIS Simple Features Specification)
        Returns:
        a Geometry read from reader
        Throws:
        ParseException - if a parsing problem occurs