27 #include "../common/STLUtils.h" 28 #include "../core/translator/Translator.h" 33 #ifdef TERRALIB_GEOS_ENABLED 35 #include <geos/geom/Geometry.h> 36 #include <geos/util/GEOSException.h> 50 #ifdef TERRALIB_GEOS_ENABLED 55 return g->getLength();
57 catch(geos::util::GEOSException& e)
63 throw Exception(
TE_TR(
"getLength routine is supported by GEOS! Please, enable the GEOS support."));
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
bool isRing() const
It returns true if the curve is closed and simple.
Configuration flags for the Vector Geometry Model of TerraLib.
Base exception class for plugin module.
Curve is an abstract class that represents 1-dimensional geometric objects stored as a sequence of co...
virtual double getLength() const
The length of this curve in the unit associated to its spatial reference system.
virtual Curve & operator=(const Curve &rhs)
Assignment operator.
virtual bool isClosed() const =0
It returns true if the curve is closed (startPoint = endPoint).
#define TE_TR(message)
It marks a string in order to get translated.
virtual bool isSimple() const _NOEXCEPT_OP(false)
It returns true if this geometric object has no anomalous points, such as self intersection or self t...
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".
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.
Curve is an abstract class that represents 1-dimensional geometric objects stored as a sequence of co...
A class that converts a TerraLib geometry to a GEOS geometry.
Curve(GeomType t, int srid=0, Envelope *mbr=0)
It initializes the curve with the specified spatial reference system id and envelope.
Dimensionality getDimension() const
Curves are 1-dimensional objects.