27 #include "../common/Translator.h"
35 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);
43 throw Exception(
TR_SRS(
"Invalid SRS WKT - parsing failed!"));
An exception class for the SRS module.
SpatialReferenceSystem * getSRS()
It returns the SRS generated by the parser process.
static SpatialReferenceSystem * read(const char *wkt)
It returns a valid SRS from a given WKT.
A Spatial Reference System, also known as a Coordinate System.
#define TR_SRS(message)
It marks a string in order to get translated. This is a special mark used in the SRS module of TerraL...
A class that implements the Grammar Rules for well known text (WKT) format of Spatial Reference Syste...