26#ifndef __TERRALIB_GEOMETRY_INTERNAL_POINT_H
27#define __TERRALIB_GEOMETRY_INTERNAL_POINT_H
#define TE_DEFINE_VISITABLE
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A base class for values that can be retrieved from the data access module.
An Envelope defines a 2D rectangular region.
Geometry(GeomType t, int srid=0, Envelope *mbr=0) _NOEXCEPT_OP(true)
It initializes the Geometry with the specified spatial reference system id and envelope.
double m_y
The Point y-coordinate value.
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 setM(const double &m)
It sets the Point m-coordinate value.
virtual ~Point()
Virtual destructor.
void setSRID(int srid) _NOEXCEPT_OP(true)
It sets the Spatial Reference System ID of the Point.
void setZ(const double &z)
It sets the Point z-coordinate value.
double m_m
The Point m-coordinate value.
double m_z
The Point z-coordinate value.
static const double sm_notNumber
Just a special value to return in the case of a invalid Geometry.
const double & getY() const
It returns the Point y-coordinate value.
void computeMBR(bool cascade) const _NOEXCEPT_OP(true)
It computes the minimum bounding rectangle for the point.
const std::string & getGeometryType() const _NOEXCEPT_OP(true)
The name of instantiable subtype is: Point.
bool operator<(const Point &rhs)
Less then operator.
void convert(te::srs::Converter *converter) override
It converts the coordinate values of the point to the new spatial reference system.
const double & getX() const
It returns the Point x-coordinate value.
Point(const double &x, const double &y, 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.
virtual Point & operator=(const Point &rhs)
Assignment operator.
Point(const Point &rhs)
Copy constructor.
static const std::string sm_typeName
Geometry type name for Point.
std::size_t getNPoints() const _NOEXCEPT_OP(true)
it returns the number of points (vertexes) in the geometry.
const double & getM() const
It returns the Point m-coordinate value, if it has one or DoubleNotANumber otherwise.
Dimensionality getDimension() const _NOEXCEPT_OP(true)
Points are 0-dimensional objects.
virtual te::dt::AbstractData * clone() const
It clones the point.
const double & getZ() const
It returns the Point z-coordinate value, if it has one or DoubleNotANumber otherwise.
void setX(const double &x)
It sets the Point x-coordinate value.
double m_x
The Point x-coordinate value.
Namespace for the Vector Geometry module of TerraLib.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Dimensionality
From Wikipedia: "in mathematics, the dimension of an object is an intrinsic property,...
Namespace for the Spatial Reference System module of TerraLib.
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.