Skip navigation links
com.vividsolutions.jts.io

Class WKTReader

    • Constructor Detail

      • WKTReader

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

        public WKTReader(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.
        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.
        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

Copyright © 2016. All rights reserved.