org.geotools.geometry.iso.io.wkt
Class WKTReader

java.lang.Object
  extended by org.geotools.geometry.iso.io.wkt.WKTReader

public class WKTReader
extends java.lang.Object

Author:
sanjay

Constructor Summary
WKTReader(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
           
WKTReader(org.opengis.referencing.crs.CoordinateReferenceSystem crs, org.opengis.geometry.PositionFactory aPositionFactory)
          Creates a reader that creates objects using the given crs.
 
Method Summary
 org.opengis.geometry.Geometry read(java.io.Reader reader)
          Reads a Well-Known Text representation of a Geometry from a Reader.
 org.opengis.geometry.Geometry read(java.lang.String wellKnownText)
          Reads a Well-Known Text representation of a Geometry from a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WKTReader

public WKTReader(org.opengis.referencing.crs.CoordinateReferenceSystem crs)

WKTReader

public WKTReader(org.opengis.referencing.crs.CoordinateReferenceSystem crs,
                 org.opengis.geometry.PositionFactory aPositionFactory)
Creates a reader that creates objects using the given crs.

Parameters:
crs -
Method Detail

read

public org.opengis.geometry.Geometry read(java.lang.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 org.opengis.geometry.Geometry read(java.io.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 © 1996-2010 Geotools. All Rights Reserved.