27 #include "../core/translator/Translator.h" 31 #ifdef TERRALIB_GEOS_ENABLED 33 #include <geos/geom/Geometry.h> 34 #include <geos/util/GEOSException.h> 48 #ifdef TERRALIB_GEOS_ENABLED 51 return g->getLength();
54 throw Exception(
TE_TR(
"getLength routine is supported by GEOS! Please, enable the GEOS support."));
Dimensionality getDimension() const
Surfaces are 2-dimensional objects.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Base exception class for plugin module.
virtual double getPerimeter() const =0
It returns the length of the boundary for the surface.
#define TE_TR(message)
It marks a string in order to get translated.
An Envelope defines a 2D rectangular region.
Dimensionality
From Wikipedia: "in mathematics, the dimension of an object is an intrinsic property, independent of the space in which the object may happen to be embedded".
Surface is an abstract class that represents a 2-dimensional geometric objects.
virtual Surface & operator=(const Surface &rhs)
Assignment operator.
static geos::geom::Geometry * write(const Geometry *teGeom)
It reads a TerraLib geometry and make a GEOS geometry.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A class that converts a TerraLib geometry to a GEOS geometry.
Surface(GeomType t, int srid=0, Envelope *mbr=0)
It initializes the surface with the specified spatial reference system id and envelope.
Surface is an abstract class that represents a 2-dimensional geometric objects.