Converts a Well-known Text string to a Geometry object.
For a list of all members of this type, see GeometryWktReader Members.
System.Object
GeometryWktReader
Text format is defined in the OpenGIS Simple Features Specification for SQL
The Well-Known Text reader (GeometryWKTReader) is designed to allow extracting Geometry objects from either input streams or internal strings. This allows it to function as a parser to read Geometry objects from text blocks embedded in other data formats (e.g. XML).
Note: There is an inconsistency in the SFS. The WKT grammar states that MultiPoints are represented by MULTIPOINT ( ( x y), (x y) ) , but the examples show MultiPoints as MULTIPOINT ( x y, x y ) . Other implementations follow the latter syntax, so JTS will adopt it as well.
A GeometryWKTReader is parameterized by a GeometryFactory , to allow it to create Geometry objects of the appropriate implementation. In particular, the GeometryFactory will determine the PrecisionModel and SRID that is used.
The GeometryWKTReader will convert the input numbers to the precise internal representation.
Namespace: Geotools.IO Namespace
Assembly: Geotools.dll
GeometryWktReader Members | Geotools.IO Namespace