27 #include "../core/translator/Translator.h" 28 #include "../Defines.h" 29 #include "../srs/Converter.h" 81 return new Point(*
this);
86 if (
m_x < rhs.
m_x)
return true;
87 if (
m_x > rhs.
m_x)
return false;
88 if (
m_y < rhs.
m_y)
return true;
89 if (
m_y > rhs.
m_y)
return false;
110 #ifdef TERRALIB_MOD_SRS_ENABLED 116 converter->setSourceSRID(
m_srid);
117 converter->setTargetSRID(srid);
122 converter->convert(x, y);
133 #endif // TERRALIB_MOD_SRS_ENABLED 138 if (
m_mbr ==
nullptr)
void init(const double &llx, const double &lly, const double &urx, const double &ury)
It initializes (sets) the envelope bounds.
static const double sm_notNumber
Just a special value to return in the case of a invalid Geometry.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
void setSRID(int srid) _NOEXCEPT_OP(true)
It sets the Spatial Reference System ID of the Point.
Base exception class for plugin module.
void computeMBR(bool cascade) const _NOEXCEPT_OP(true)
It computes the minimum bounding rectangle for the point.
int m_srid
The Spatial Reference System code associated to the Geometry.
A point with x and y coordinate values.
Dimensionality getDimension() const _NOEXCEPT_OP(true)
Points are 0-dimensional objects.
#define TE_TR(message)
It marks a string in order to get translated.
virtual Point & operator=(const Point &rhs)
Assignment operator.
An Envelope defines a 2D rectangular region.
const double & getY() const
It returns the Point y-coordinate value.
A point with x and y coordinate values.
An Envelope defines a 2D rectangular region.
virtual te::dt::AbstractData * clone() const
It clones 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".
void transform(int srid) _NOEXCEPT_OP(false)
It converts the coordinate values of the point to the new spatial reference system.
A base class for values that can be retrieved from the data access module.
double m_z
The Point z-coordinate value.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
virtual Geometry & operator=(const Geometry &rhs) _NOEXCEPT_OP(true)
Assignment operator.
Envelope * m_mbr
The geometry minimum bounding rectangle.
bool operator<(const Point &rhs)
Less then operator.
A Converter is responsible for the conversion of coordinates between different Coordinate Systems (CS...
double m_y
The Point y-coordinate value.
double m_m
The Point m-coordinate value.
void setX(const double &x)
It sets the Point x-coordinate value.
const std::string & getGeometryType() const _NOEXCEPT_OP(true)
The name of instantiable subtype is: Point.
Point(int srid=0, GeomType t=te::gm::PointType, Envelope *mbr=0)
It initializes the Geometry with the specified spatial reference system id and envelope.
void setY(const double &y)
It sets the Point y-coordinate value.
static const std::string sm_typeName
Geometry type name for Point.
double m_x
The Point x-coordinate value.
An exception class for the Geometry module.
const double & getX() const
It returns the Point x-coordinate value.