GEOS  3.8.0dev
Public Member Functions | Protected Member Functions | List of all members
geos::io::WKTReader Class Reference

WKT parser class; see also WKTWriter. More...

#include <geos.h>

Public Member Functions

 WKTReader (const geom::GeometryFactory &gf)
 Inizialize parser with given GeometryFactory. More...
 
 WKTReader (const geom::GeometryFactory *gf)
 
 WKTReader ()
 Inizialize parser with default GeometryFactory.
 
std::unique_ptr< geom::Geometryread (const std::string &wellKnownText)
 Parse a WKT string returning a Geometry.
 

Protected Member Functions

std::unique_ptr
< geom::CoordinateSequence
getCoordinates (io::StringTokenizer *tokenizer)
 
double getNextNumber (io::StringTokenizer *tokenizer)
 
std::string getNextEmptyOrOpener (io::StringTokenizer *tokenizer)
 
std::string getNextCloserOrComma (io::StringTokenizer *tokenizer)
 
std::string getNextCloser (io::StringTokenizer *tokenizer)
 
std::string getNextWord (io::StringTokenizer *tokenizer)
 
std::unique_ptr< geom::GeometryreadGeometryTaggedText (io::StringTokenizer *tokenizer)
 
std::unique_ptr< geom::PointreadPointText (io::StringTokenizer *tokenizer)
 
std::unique_ptr< geom::LineStringreadLineStringText (io::StringTokenizer *tokenizer)
 
std::unique_ptr< geom::LinearRingreadLinearRingText (io::StringTokenizer *tokenizer)
 
std::unique_ptr< geom::MultiPointreadMultiPointText (io::StringTokenizer *tokenizer)
 
std::unique_ptr< geom::PolygonreadPolygonText (io::StringTokenizer *tokenizer)
 
std::unique_ptr
< geom::MultiLineString
readMultiLineStringText (io::StringTokenizer *tokenizer)
 
std::unique_ptr
< geom::MultiPolygon
readMultiPolygonText (io::StringTokenizer *tokenizer)
 
std::unique_ptr
< geom::GeometryCollection
readGeometryCollectionText (io::StringTokenizer *tokenizer)
 

Detailed Description

WKT parser class; see also WKTWriter.

Constructor & Destructor Documentation

geos::io::WKTReader::WKTReader ( const geom::GeometryFactory gf)

Inizialize parser with given GeometryFactory.

Note that all Geometry objects created by the parser will contain a pointer to the given factory so be sure you'll keep the factory alive for the whole WKTReader and created Geometry life.

geos::io::WKTReader::WKTReader ( const geom::GeometryFactory gf)
Deprecated:
in 3.4.0

The documentation for this class was generated from the following file: