27 #include "../common/Translator.h"
90 throw Exception(
TR_GEOM(
"Invalid spatial relation!"));
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
TEGEOMEXPORT Geometry * GetGeomFromEnvelope(const Envelope *const e, int srid)
It creates a Geometry (a polygon) from the given envelope.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
A LinearRing is a LineString that is both closed and simple.
virtual bool intersects(const Geometry *const rhs) const
It returns true if the geometry object spatially intersects rhs geometry.
An exception class for the Geometry module.
A LinearRing is a LineString that is both closed and simple.
#define TR_GEOM(message)
It marks a string in order to get translated. This is a special mark used in the Vector Geometry modu...
virtual bool within(const Geometry *const rhs) const
It returns true if the geometry object is spatially within rhs geometry.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
SpatialRelation
Spatial relations between geometric objects.
Utility functions for the Geometry Module.
double m_lly
Lower left corner y-coordinate.
TEGEOMEXPORT bool SatisfySpatialRelation(const Geometry *g1, const Geometry *g2, SpatialRelation relation)
It returns if two geometries satisfy a given spatial relation.
virtual bool contains(const Geometry *const rhs) const
It returns true if this geometry object spatially contains rhs geometry.
double m_ury
Upper right corner y-coordinate.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
double m_urx
Upper right corner x-coordinate.
virtual bool crosses(const Geometry *const rhs) const
It returns true if the geometry object spatially crosses rhs geometry.
virtual bool overlaps(const Geometry *const rhs) const
It returns true if this geometry object spatially overlaps rhs geometry.
virtual bool equals(const Geometry *const rhs, const bool exact=false) const
It returns true if the geometry object is spatially equal to rhs geometry.
virtual bool touches(const Geometry *const rhs) const
It returns true if the geometry object spatially touches rhs geometry.
void setPoint(std::size_t i, const double &x, const double &y)
It sets the value of the specified point.
virtual bool covers(const Geometry *const rhs) const
It returns true if this geometry object spatially covers the rhs geometry.
double m_llx
Lower left corner x-coordinate.
An Envelope defines a 2D rectangular region.
void setRingN(std::size_t i, Curve *r)
It sets the informed position ring to the new one.
An Envelope defines a 2D rectangular region.
virtual bool coveredBy(const Geometry *const rhs) const
It returns true if this geometry object is spatially covered by rhs geometry.
virtual bool disjoint(const Geometry *const rhs) const
It returns true if the geometry object is spatially disjoint from rhs geometry.