27 #include "terralib_config.h"
28 #include "../Defines.h"
29 #include "../common/Translator.h"
30 #include "../srs/Converter.h"
76 #ifdef TERRALIB_MOD_SRS_ENABLED
82 converter->setSourceSRID(m_srid);
83 converter->setTargetSRID(srid);
88 converter->convert(x,y);
98 throw Exception(
TE_TR(
"transform method is not supported!"));
99 #endif // TERRALIB_MOD_SRS_ENABLED
105 m_mbr =
new Envelope(getX(), getY(), getX(), getY());
107 m_mbr->init(getX(), getY(), getX(), getY());
A base abstract class for 0-dimensional geometric objects that represents a single location in coordi...
void transform(int srid)
It converts the coordinate values of the point to the new spatial reference system.
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.
void computeMBR(bool cascade) const
It computes the minimum bounding rectangle for the point.
An Envelope defines a 2D rectangular region.
An Envelope defines a 2D rectangular region.
void setSRID(int srid)
It sets the Spatial Reference System ID of the Point.
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".
virtual AbstractPoint & operator=(const AbstractPoint &rhs)
Assignment operator.
Dimensionality getDimension() const
Points are 0-dimensional objects.
TE_DEFINE_VISITABLE AbstractPoint(GeomType t, int srid=0, Envelope *mbr=0)
It initializes the point with the specified spatial reference system id and envelope.
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.
An exception class for the Geometry module.
A Converter is responsible for the conversion of coordinates between different Coordinate Systems (CS...
static const double sm_notNumber
Just a special value to return in the case of an invalid geometry.
static const std::string sm_typeName
Geometry type name for AbstractPoint.
const std::string & getGeometryType() const
The name of instantiable subtype is: Point.
A base abstract class for 0-dimensional geometric objects that represents a single location in coordi...