27 #include "../common/Exception.h" 28 #include "../core/translator/Translator.h" 29 #include "../srs/Converter.h" 91 return sqrt((dx * dx) + (dy * dy));
96 #ifdef TERRALIB_MOD_SRS_ENABLED 98 if (oldsrid == newsrid)
116 #endif // TERRALIB_MOD_SRS_ENABLED bool intersects(const Envelope &rhs) const
It returns true if the envelopes "spatially intersects".
void transform(int srid)
It converts the coordinate values of the geometry to the new spatial reference system.
static te::dt::Date dx(2010, 12, 31)
Base exception class for plugin module.
double m_urx
Upper right corner x-coordinate.
An utility struct for representing 2D coordinates.
#define TE_TR(message)
It marks a string in order to get translated.
Utility functions for the Geometry Module.
Coord2D getCenter() const
It returns the rectangle's center coordinate.
double m_llx
Lower left corner x-coordinate.
An Envelope defines a 2D rectangular region.
const Envelope * getMBR() const _NOEXCEPT_OP(true)
It returns the minimum bounding rectangle for the geometry in an internal representation.
An Envelope defines a 2D rectangular region.
double distance(const Envelope &rhs) const
It returns the shortest distance between any two points in the two envelopes.
double m_lly
Lower left corner y-coordinate.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
double m_ury
Upper right corner y-coordinate.
Coord2D getUpperRight() const
It returns the upper right coordinate of the envelope.
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
LineString is a curve with linear interpolation between points.
Coord2D getLowerLeft() const
It returns the lower left coordinate of the envelope.
TEGEOMEXPORT te::gm::Polygon CreatePolygon(const te::gm::Envelope &box, const int &srid, const int &numberOfIntermediateCoords)
Creates a Polygon from the given envelope and with the given number of intermediate coordinates in ea...
An utility struct for representing 2D coordinates.
void transform(int oldsrid, int newsrid)
It will transform the coordinates of the Envelope from the old SRS to the new one.