27 #include "../common/Exception.h"
28 #include "../srs/Converter.h"
79 converter->setSourceSRID(m_srid);
80 converter->setTargetSRID(srid);
85 converter->convert(x,y);
99 m_mbr =
new Envelope(getX(), getY(), getX(), getY());
101 m_mbr->init(getX(), getY(), getX(), getY());
static const double sm_notNumber
Just a special value to return in the case of an invalid geometry.
virtual AbstractPoint & operator=(const AbstractPoint &rhs)
Assignment operator.
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
void transform(int srid)
It converts the coordinate values of the point to the new spatial reference system.
static const std::string sm_typeName
Geometry type name for AbstractPoint.
void computeMBR(bool cascade) const
It computes the minimum bounding rectangle for the point.
A base abstract class for 0-dimensional geometric objects that represents a single location in coordi...
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
A base abstract class for 0-dimensional geometric objects that represents a single location in coordi...
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".
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
const std::string & getGeometryType() const
The name of instantiable subtype is: Point.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
void setSRID(int srid)
It sets the Spatial Reference System ID of the Point.
#define TE_DOUBLE_NOT_A_NUMBER
Macro for defining not a number for float values.
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.
A Converter is responsible for the conversion of coordinates between different Coordinate Systems (CS...
virtual Geometry & operator=(const Geometry &rhs)
Assignment operator.
An Envelope defines a 2D rectangular region.
Dimensionality getDimension() const
Points are 0-dimensional objects.
An Envelope defines a 2D rectangular region.