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

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

#include <WKTReader.h>

Public Member Functions

 WKTReader (const geom::GeometryFactory &gf)
 Initialize parser with given GeometryFactory. More...
 
 WKTReader (const geom::GeometryFactory *gf)
 
 WKTReader ()
 Initialize parser with default GeometryFactory.
 
void setFixStructure (bool doFixStructure)
 
template<typename T >
std::unique_ptr< T > read (const std::string &wkt) const
 Parse a WKT string returning a Geometry.
 
std::unique_ptr< geom::Geometryread (const std::string &wellKnownText) const
 

Protected Member Functions

std::unique_ptr< geom::CoordinateSequencegetCoordinates (io::StringTokenizer *tokenizer, OrdinateSet &ordinates) const
 
std::unique_ptr< geom::GeometryreadGeometryTaggedText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags, const geom::GeometryTypeId *emptyType=nullptr) const
 
std::unique_ptr< geom::PointreadPointText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::LineStringreadLineStringText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::LinearRingreadLinearRingText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::MultiPointreadMultiPointText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::PolygonreadPolygonText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::MultiLineStringreadMultiLineStringText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::MultiPolygonreadMultiPolygonText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::GeometryCollectionreadGeometryCollectionText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::CircularString > readCircularStringText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::CompoundCurve > readCompoundCurveText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::CurvePolygon > readCurvePolygonText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::MultiCurve > readMultiCurveText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::MultiSurface > readMultiSurfaceText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 
std::unique_ptr< geom::Curve > readCurveText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 Read the contents of a LINEARRING, LINESTRING, CIRCULARSTRING, or COMPOUNDCURVE.
 
std::unique_ptr< geom::GeometryreadSurfaceText (io::StringTokenizer *tokenizer, OrdinateSet &ordinateFlags) const
 Read the contents of a POLYGON or a CURVEPOLYGON.
 

Static Protected Member Functions

static double getNextNumber (io::StringTokenizer *tokenizer)
 
static std::string getNextEmptyOrOpener (io::StringTokenizer *tokenizer, OrdinateSet &dim)
 
static std::string getNextCloserOrComma (io::StringTokenizer *tokenizer)
 
static std::string getNextCloser (io::StringTokenizer *tokenizer)
 
static std::string getNextWord (io::StringTokenizer *tokenizer)
 

Detailed Description

WKT parser class; see also WKTWriter.

Constructor & Destructor Documentation

◆ WKTReader() [1/2]

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

Initialize 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.

◆ WKTReader() [2/2]

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

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