27 #include "../common/Translator.h"
36 const std::string s(wkt);
37 std::string::const_iterator beginS = s.begin();
38 std::string::const_iterator endS = s.end();
40 bool isValid = phrase_parse(beginS, endS, parser, boost::spirit::ascii::space);
42 throw Exception(
TR_GEOM(
"Invalid Geometry WKT - parsing failed!"));
An exception class for the Geometry module.
#define TR_GEOM(message)
It marks a string in order to get translated. This is a special mark used in the Vector Geometry modu...
A class that implements the grammar rules for well known text (WKT) for Geometry. It is based on boos...
Geometry * getGeometry()
It returns the geometry generated by the parser process.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
static Geometry * read(const char *wkt)
It returns a valid Geometry from a given WKT.
A class that deserializes a geometry from a valid WKT.