14 std::cout <<
"Reading Wkt file..." << std::endl;
17 std::ifstream wktFile(filePath.c_str(), std::ifstream::in);
21 std::getline(wktFile, wkt);
23 std::cout << std::endl;
24 std::cout <<
"File Wkt: " << wkt << std::endl;
34 std::cout << e.
what() << std::endl;
40 std::cout <<
"Generated Geometry Wkt: " << g->
asText() << std::endl;
virtual const char * what() const
It outputs the exception message.
std::string asText() const _NOEXCEPT_OP(true)
It returns an string with the Well-Known Text Representation for the geometry.
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
A set of geometry examples.
void readWkts(const std::string &filePath)
static Geometry * read(const char *wkt)
It returns a valid Geometry from a given WKT.