27 #include "../common/Translator.h"
31 #ifdef TERRALIB_GEOS_ENABLED
33 #include <geos/geom/Geometry.h>
34 #include <geos/util/GEOSException.h>
49 #ifdef TERRALIB_GEOS_ENABLED
50 std::auto_ptr<geos::geom::Geometry> g(GEOSWriter::write(
this));
52 return g->getLength();
55 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.
virtual Geometry & operator=(const Geometry &rhs)
Assignment operator.
#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.
virtual double getPerimeter() const =0
It returns the length of the boundary for the surface.
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.