GEOS
3.9.1dev
|
WKT parser class; see also WKTWriter. More...
#include <WKTReader.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. More... | |
~WKTReader () | |
std::unique_ptr< geom::Geometry > | read (const std::string &wellKnownText) |
Parse a WKT string returning a Geometry. More... | |
Private Member Functions | |
void | getPreciseCoordinate (io::StringTokenizer *tokenizer, geom::Coordinate &, std::size_t &dim) |
bool | isNumberNext (io::StringTokenizer *tokenizer) |
Private Attributes | |
const geom::GeometryFactory * | geometryFactory |
const geom::PrecisionModel * | precisionModel |
WKT parser class; see also WKTWriter.
Definition at line 58 of file WKTReader.h.
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 | ) |
geos::io::WKTReader::WKTReader | ( | ) |
Inizialize parser with default GeometryFactory.
geos::io::WKTReader::~WKTReader | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
std::unique_ptr<geom::Geometry> geos::io::WKTReader::read | ( | const std::string & | wellKnownText | ) |
Parse a WKT string returning a Geometry.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
Definition at line 105 of file WKTReader.h.
|
private |
Definition at line 106 of file WKTReader.h.