CompoundCurve is a curve that may have circular and linear segments. More...
#include <CompoundCurve.h>
Public Types | |
| typedef void | ReturnType |
| typedef Visitor | VisitorType |
Public Member Functions | |
| virtual ReturnType | accept (VisitorType &guest) const=0 |
| It call the visit method from the guest object. | |
Initializer methods on geometric objects | |
Methods for initializing a geometric object. | |
| CompoundCurve (GeomType t, int srid=0, Envelope *mbr=0) | |
| It initializes the compound curve with the specified spatial reference system id and envelope. | |
| CompoundCurve (std::size_t size, GeomType t, int srid=0, Envelope *mbr=0) | |
| It initializes the compound curve with the specified spatial reference system id and envelope. | |
| CompoundCurve (const CompoundCurve &rhs) | |
| Copy constructor. | |
| ~CompoundCurve () | |
| Virtual destructor. | |
| CompoundCurve & | operator= (const CompoundCurve &rhs) |
| Assignment operator. | |
Re-Implementation from AbstractData | |
Methods re-Implementated from AbstractData. | |
| te::dt::AbstractData * | clone () const |
| It clones the compound curve. | |
Re-Implmentation of methods from Geometry class | |
Re-Implmentation of basic methods from Geometry class. | |
| const std::string & | getGeometryType () const throw () |
| The name of instantiable subtype is: CompoundCurve. | |
| void | setSRID (int srid) throw () |
| It sets the Spatial Reference System ID of the compound curve. | |
| void | convert (te::srs::Converter *converter) override |
| It converts the coordinate values of the compound curve to the new spatial reference system. | |
| void | computeMBR (bool cascade) const throw () |
| It computes the minimum bounding rectangle for the compound curve. | |
| std::size_t | getNPoints () const throw () |
| It returns the number of points (vertexes) in the compound curve. | |
| Geometry * | locateBetween (const double &mStart, const double &mEnd) const |
| It returns a derived geometry collection value according to the range of coordinate values inclusively. | |
Re-Implementation from Curve | |
Methods re-impleented from Curve. | |
| double | getLength () const |
| The length of this Curve in its associated spatial reference. | |
| std::unique_ptr< Point > | getStartPoint () const |
| It returns the curve start point. | |
| std::unique_ptr< Point > | getEndPoint () const |
| It returns the curve end point. | |
| bool | isClosed () const |
| It returns true if the curve is closed (startPoint = endPoint). | |
Curve Specific Methods | |
Specific methods for a Curve. | |
| bool | isRing () const |
| It returns true if the curve is closed and simple. | |
Re-Implmentation of methods from Geometry class | |
Re-Implmentation of basic methods from Geometry class. | |
| Dimensionality | getDimension () const throw () |
| Curves are 1-dimensional objects. | |
Basic Geometry Methods | |
Basic methods on geometric objects. | |
| int | getCoordinateDimension () const _NOEXCEPT_OP(true) |
| It returns the number of measurements or axes needed to describe a position in a coordinate system. | |
| GeomType | getGeomTypeId () const _NOEXCEPT_OP(true) |
| It returns the geometry subclass type identifier. | |
| virtual const std::string | get2DGeometryType () const _NOEXCEPT_OP(true) |
| It returns the name of 2D geometry subclass. | |
| virtual GeomType | get2DGeomTypeId () const _NOEXCEPT_OP(true) |
| It returns the 2D geometry subclass type identifier. | |
| int | getSRID () const _NOEXCEPT_OP(true) |
| It returns the Spatial Reference System ID associated to this geometric object. | |
| virtual void | transform (const int &srid) _NOEXCEPT_OP(false) |
| It converts the coordinate values of the geometry to the new spatial reference system. | |
| Geometry * | getEnvelope () const _NOEXCEPT_OP(true) |
| It returns the minimum bounding rectangle (MBR) for the geometry. | |
| const Envelope * | getMBR () const _NOEXCEPT_OP(true) |
| It returns the minimum bounding rectangle for the geometry in an internal representation. | |
| std::string | asText () const _NOEXCEPT_OP(true) |
| It returns an string with the Well-Known Text Representation for the geometry. | |
| char * | asBinary (std::size_t &size) const _NOEXCEPT_OP(false) |
| It serializes the geometric object to a Well-known Binary Representation (WKB). | |
| std::size_t | getWkbSize () const _NOEXCEPT_OP(true) |
| It returns the size required by a WKB representation for this geometric object. | |
| void | getWkb (char *wkb, te::common::MachineByteOrder byteOrder) const _NOEXCEPT_OP(false) |
| It serializes the geometry to a WKB representation into the specified buffer. | |
| virtual bool | isEmpty () const _NOEXCEPT_OP(false) |
| It returns true if this geometric object is the empty Geometry. | |
| virtual bool | isSimple () const _NOEXCEPT_OP(false) |
| It returns true if this geometric object has no anomalous points, such as self intersection or self tangency. | |
| virtual bool | isValid () const _NOEXCEPT_OP(false) |
| It tells if the geometry is well formed. | |
| bool | is3D () const _NOEXCEPT_OP(true) |
| It returns true if this geometric object has z coordinate values. | |
| bool | isMeasured () const _NOEXCEPT_OP(true) |
| It returns true if this geometric object has m coordinate values. | |
| bool | isCollection () const _NOEXCEPT_OP(true) |
| It returns true if this geometric object is a collection. | |
| virtual Geometry * | getBoundary () const _NOEXCEPT_OP(false) |
| It returns the geometry boundary. | |
| te::gm::Coord2D | getCentroid () const _NOEXCEPT_OP(false) |
| It will get the centroid of the input geometries. | |
Spatial Relations | |
Methods for testing spatial relations between geometric objects. Please, see OGC specification for a in depth definition of each spatial operation. | |
| virtual bool | equals (const Geometry *const rhs, const bool exact=false) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object is spatially equal to rhs geometry. | |
| virtual bool | disjoint (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object is spatially disjoint from rhs geometry. | |
| virtual bool | intersects (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object spatially intersects rhs geometry. | |
| virtual bool | touches (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object spatially touches rhs geometry. | |
| virtual bool | crosses (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object spatially crosses rhs geometry. | |
| virtual bool | within (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if the geometry object is spatially within rhs geometry. | |
| virtual bool | contains (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if this geometry object spatially contains rhs geometry. | |
| virtual bool | overlaps (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if this geometry object spatially overlaps rhs geometry. | |
| virtual bool | relate (const Geometry *const rhs, const std::string &matrix) const _NOEXCEPT_OP(false) |
| It returns true if this geometry object is spatially related to rhs geometry according to the pattern expressed by the intersection matrix. | |
| virtual std::string | relate (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns the spatial relation between this geometry object and the rhs geometry. | |
| virtual bool | covers (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if this geometry object spatially covers the rhs geometry. | |
| virtual bool | coveredBy (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns true if this geometry object is spatially covered by rhs geometry. | |
| virtual Geometry * | locateAlong (const double &mValue) const _NOEXCEPT_OP(false) |
| It returns a derived GeometryCollection value according to the specified coordinate value. | |
Spatial Analysis | |
Methods that support spatial analysis. | |
| virtual double | distance (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns the shortest distance between any two points in the two geometry objects. | |
| virtual Geometry * | buffer (const double &distance) const _NOEXCEPT_OP(false) |
| This method calculates the buffer of a geometry. | |
| virtual Geometry * | buffer (const double &distance, int quadrantSegments) const _NOEXCEPT_OP(false) |
| This method calculates the buffer of a geometry. | |
| virtual Geometry * | buffer (const double &distance, int quadrantSegments, BufferCapStyle endCapStyle) const _NOEXCEPT_OP(false) |
| This method calculates the buffer of a geometry. | |
| virtual Geometry * | convexHull () const _NOEXCEPT_OP(false) |
| This method calculates the Convex Hull of a geometry. | |
| virtual Geometry * | intersection (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns a geometric object that represents the point set intersection with another geometry. | |
| virtual Geometry * | Union (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns a geometric object that represents the point set union with another geometry. | |
| virtual Geometry * | difference (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns a geometric object that represents the point set difference with another geometry. | |
| virtual Geometry * | symDifference (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
| It returns a geometric object that represents the point set symetric difference with another geometry. | |
| virtual bool | dWithin (const Geometry *const rhs, const double &distance) const _NOEXCEPT_OP(false) |
| It returns true if the geometries are within the specified distance. | |
Static Public Member Functions | |
Auxiliary Methods | |
Auxiliary Methods. | |
| static GeomType | getGeomTypeId (const std::string >ype) |
| It returns the TerraLib geometry type id given a type string (the type string must be in capital letters). | |
| static std::string | getGeomTypeString (const int &gId) |
| It returns the TerraLib geometry type string given a type id. | |
| static bool | isGeomType (const std::string &stype) |
| It tells if the given string is a geometry data type. | |
| static void | loadGeomTypeId () |
| It loads the internal MAP of geometry type names to geometry type ids. | |
CompoundCurve Specific Methods | |
Specific methods for a CompoundCurve. | |
| std::vector< Curve * > | m_curves |
| The list of segments of the compund curve. | |
| static const std::string | sm_typeName |
| std::size_t | size () const |
| It returns the number of elements in the compound geometry. | |
| void | makeEmpty () |
| It clears all the segments. | |
| Curve * | getCurve (std::size_t i) const |
| It returns the i-th curve. | |
| void | add (Curve *c) |
| It adds the curve to the compound. | |
| const std::vector< Curve * > & | getCurves () const |
| It returns a pointer to the internal array of segments. | |
| std::vector< Curve * > & | getCurves () |
| It returns a pointer to the internal array of segments. | |
AbstractData Re-implementation | |
Methods re-implemneted from AbstractData. | |
| GeomType | m_gType |
| Internal geometry type. | |
| int | m_srid |
| The Spatial Reference System code associated to the Geometry. | |
| Envelope * | m_mbr |
| The geometry minimum bounding rectangle. | |
| int | getTypeCode () const |
| It returns the data type code associated to the data value. | |
| std::string | toString () const |
| It returns the data value in a WKT representation. | |
| static std::map< std::string, GeomType > | sm_geomTypeMap |
| A set of geometry type names (in UPPER CASE). | |
CompoundCurve is a curve that may have circular and linear segments.
Definition at line 53 of file CompoundCurve.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
It initializes the compound curve with the specified spatial reference system id and envelope.
| t | The internal type of the compound curve. |
| srid | The Spatial Reference System ID associated to the compound curve. |
| mbr | The minimum bounding rectangle of this geometry (i.e., its envelope). |
Referenced by CompoundCurve(), and operator=().
| te::gm::CompoundCurve::CompoundCurve | ( | std::size_t | size, |
| GeomType | t, | ||
| int | srid = 0, | ||
| Envelope * | mbr = 0 ) |
It initializes the compound curve with the specified spatial reference system id and envelope.
| size | The number of elements in the CompoundCurve. It must be a value greater than 0. |
| t | The internal type of the compound curve. |
| srid | The Spatial Reference System ID associated to the compound curve. |
| mbr | The minimum bounding rectangle of this geometry (i.e., its envelope). |
References size().
| te::gm::CompoundCurve::CompoundCurve | ( | const CompoundCurve & | rhs | ) |
| te::gm::CompoundCurve::~CompoundCurve | ( | ) |
Virtual destructor.
|
pure virtualinherited |
It call the visit method from the guest object.
| guest | The guest or visitor. |
| void te::gm::CompoundCurve::add | ( | Curve * | c | ) |
It adds the curve to the compound.
| c | The curve to be added to the compound. The compound will take its ownership. |
References te::gm::Curve::Curve().
|
inherited |
It serializes the geometric object to a Well-known Binary Representation (WKB).
| size | The size in bytes of the returned WKB. |
| Exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and asBinary().
Referenced by asBinary().
|
inherited |
It returns an string with the Well-Known Text Representation for the geometry.
References _NOEXCEPT_OP, and asText().
Referenced by asText(), and toString().
|
virtualinherited |
This method calculates the buffer of a geometry.
| distance | Distance value. |
| std::exception | It will throw an exception if the operation could not be performed. |
References distance(), and Geometry().
|
virtualinherited |
This method calculates the buffer of a geometry.
| distance | Distance value. |
| quadrantSegments | A specified number of segments used to approximate the curves. |
| std::exception | It will throw an exception if the operation could not be performed. |
References distance(), and Geometry().
|
virtualinherited |
This method calculates the buffer of a geometry.
As in GEOS, the quadrantSegments argument allows controlling the accuracy of the approximation by specifying the number of line segments used to represent a quadrant of a circle.
| distance | Distance value. |
| quadrantSegments | A specified number of segments used to approximate the curves. |
| endCapStyle | It specifies the shape used at the ends of linestrings. |
| std::exception | It will throw an exception if the operation could not be performed. |
References distance(), and Geometry().
|
virtual |
It clones the compound curve.
Implements te::dt::AbstractData.
|
virtual | |||||||||||||
It computes the minimum bounding rectangle for the compound curve.
| cascade | For compound curve this flag doesn't have effect. |
Implements te::gm::Geometry.
References computeMBR().
Referenced by computeMBR().
|
virtualinherited |
It returns true if this geometry object spatially contains rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, contains(), and Geometry().
Referenced by contains().
|
overridevirtual |
It converts the coordinate values of the compound curve to the new spatial reference system.
After calling this method the compound curve will be associated to the new SRID.
| converter | The converter containing all the information related to the new Spatial Reference System ID used to transform the coordinates of the geometry. |
| Exception | It will throw an exception if it can not do the transformation. |
Implements te::gm::Geometry.
References convert().
Referenced by convert().
|
virtualinherited |
This method calculates the Convex Hull of a geometry.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and Geometry().
Referenced by te::rp::GetTPConvexHullArea().
|
virtualinherited |
It returns true if this geometry object is spatially covered by rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, coveredBy(), and Geometry().
Referenced by coveredBy().
|
virtualinherited |
It returns true if this geometry object spatially covers the rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, covers(), and Geometry().
Referenced by covers().
|
virtualinherited |
It returns true if the geometry object spatially crosses rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, crosses(), and Geometry().
Referenced by crosses().
It returns a geometric object that represents the point set difference with another geometry.
| rhs | Another geometry whose difference with this geometry will be calculated. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, difference(), and Geometry().
Referenced by difference().
|
virtualinherited |
It returns true if the geometry object is spatially disjoint from rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, disjoint(), and Geometry().
Referenced by disjoint(), and te::rst::PolygonIterator< T >::getBBOXIntersectionRanges().
|
virtualinherited |
It returns the shortest distance between any two points in the two geometry objects.
| rhs | The other geometry. |
| std::exception | It will throw an exception if the operation could not be performed. |
References Geometry().
Referenced by buffer(), buffer(), buffer(), dWithin(), and te::gm::Line::setCoord().
|
virtualinherited |
It returns true if the geometries are within the specified distance.
| rhs | The other geometry whose symetric difference with this geometry will be calculated. |
| distance | The distance. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, distance(), dWithin(), and Geometry().
Referenced by dWithin().
|
virtualinherited |
It returns true if the geometry object is spatially equal to rhs geometry.
| rhs | The another geometry to be compared. |
| exact | If true checks if this geometric object has the same vertexes in the same order of rhs geometry. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, equals(), and Geometry().
Referenced by equals().
|
virtualinherited |
It returns the name of 2D geometry subclass.
The name of the 2D geometry subclass may be one of the following:
References _NOEXCEPT_OP.
|
virtualinherited |
It returns the 2D geometry subclass type identifier.
References _NOEXCEPT_OP, and get2DGeomTypeId().
Referenced by get2DGeomTypeId().
|
virtualinherited |
It returns the geometry boundary.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and getBoundary().
Referenced by getBoundary().
|
inherited |
It will get the centroid of the input geometries.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and getCentroid().
Referenced by getCentroid().
|
inherited |
It returns the number of measurements or axes needed to describe a position in a coordinate system.
It returns:
References _NOEXCEPT_OP, and getCoordinateDimension().
Referenced by getCoordinateDimension().
| Curve * te::gm::CompoundCurve::getCurve | ( | std::size_t | i | ) | const |
|
inline |
It returns a pointer to the internal array of segments.
Definition at line 299 of file CompoundCurve.h.
References m_curves.
|
inline |
It returns a pointer to the internal array of segments.
Definition at line 285 of file CompoundCurve.h.
References m_curves.
|
virtualinherited | ||||||||||||
|
virtual |
It returns the curve end point.
Implements te::gm::Curve.
References getEndPoint().
Referenced by getEndPoint().
|
inherited |
It returns the minimum bounding rectangle (MBR) for the geometry.
As one can notice, the mbr is returned as a geometry, actually a polygon defined by the corner points of the bounding box [(MINX, MINY), (MAXX, MINY), (MAXX, MAXY), (MINX, MAXY), (MINX, MINY)].
References _NOEXCEPT_OP, and Geometry().
|
virtual | ||||||||||||
The name of instantiable subtype is: CompoundCurve.
Implements te::gm::Geometry.
|
inlineinherited |
It returns the geometry subclass type identifier.
Definition at line 182 of file Geometry.h.
References _NOEXCEPT_OP, getGeomTypeId(), and m_gType.
Referenced by getGeomTypeId(), and getGeomTypeId().
|
staticinherited |
It returns the TerraLib geometry type id given a type string (the type string must be in capital letters).
| gtype | The geometry type name. |
References getGeomTypeId().
|
staticinherited |
It returns the TerraLib geometry type string given a type id.
| gId | The geometry type id. |
References getGeomTypeString().
Referenced by getGeomTypeString().
|
virtual |
The length of this Curve in its associated spatial reference.
Reimplemented from te::gm::Curve.
References getLength().
Referenced by getLength().
|
inherited |
It returns the minimum bounding rectangle for the geometry in an internal representation.
The mbr can be constructed when reading a geometry from a database or it can be computed internally. So, if the mbr is not already set it will compute it just when this method is called. Successive calls to this method will not compute the mbr anymore.
References _NOEXCEPT_OP, and getMBR().
Referenced by getMBR().
|
virtual | ||||||||||||
It returns the number of points (vertexes) in the compound curve.
Implements te::gm::Geometry.
References getNPoints().
Referenced by getNPoints().
|
inlineinherited |
It returns the Spatial Reference System ID associated to this geometric object.
This value can be used to identify the associated Spatial Reference System.
Definition at line 242 of file Geometry.h.
References _NOEXCEPT_OP, getSRID(), and m_srid.
Referenced by te::rst::PolygonIterator< T >::getScanLineIntersectionRanges(), getSRID(), te::rst::PolygonIterator< T >::initialize(), and te::rst::LineIterator< T >::LineIterator().
|
virtual |
It returns the curve start point.
Implements te::gm::Curve.
References getStartPoint().
Referenced by getStartPoint().
|
virtualinherited |
It returns the data type code associated to the data value.
Implements te::dt::AbstractData.
References getTypeCode().
Referenced by getTypeCode().
|
inherited |
It serializes the geometry to a WKB representation into the specified buffer.
The wkb parameter must have at least getWkbSize() in order to be used. Don't pass a NULL pointer or a buffer smaller than the size needed. Note that the WKB will be on the specified byte order.
| wkb | The buffer where the Geometry will be serialized. |
| byteOrder | The byte order used to store/serialize the geometry. |
| Exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and getWkb().
Referenced by getWkb().
|
inherited |
It returns the size required by a WKB representation for this geometric object.
This is the preferred method for creating a WKB. First of all, it gives you the possibility to use a pre-allocated buffer. So, this method can be used in conjunction with the getWkb method.
References _NOEXCEPT_OP, and getWkbSize().
Referenced by getWkbSize().
|
virtualinherited |
It returns a geometric object that represents the point set intersection with another geometry.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and intersection().
Referenced by te::gm::Line::clone(), intersection(), and te::rst::LineIterator< T >::LineIterator().
|
virtualinherited |
It returns true if the geometry object spatially intersects rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and intersects().
Referenced by intersects().
|
inherited |
It returns true if this geometric object has z coordinate values.
References _NOEXCEPT_OP, and is3D().
Referenced by is3D().
|
virtual |
It returns true if the curve is closed (startPoint = endPoint).
Implements te::gm::Curve.
References isClosed().
Referenced by isClosed().
|
inherited |
It returns true if this geometric object is a collection.
References _NOEXCEPT_OP, and isCollection().
Referenced by isCollection().
|
virtualinherited |
It returns true if this geometric object is the empty Geometry.
If true, then this geometric object represents the empty point set for the coordinate space.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and isEmpty().
Referenced by isEmpty().
|
staticinherited |
It tells if the given string is a geometry data type.
| stype | The geometry type to be checked. |
References isGeomType().
Referenced by isGeomType().
|
inherited |
It returns true if this geometric object has m coordinate values.
References _NOEXCEPT_OP, and isMeasured().
Referenced by isMeasured().
|
inherited |
It returns true if the curve is closed and simple.
|
virtualinherited |
It returns true if this geometric object has no anomalous points, such as self intersection or self tangency.
See the ISO and OGC documentation for an explanation about specific conditions of each type of geometry to be considered not simple.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and isSimple().
Referenced by isSimple().
|
virtualinherited |
It tells if the geometry is well formed.
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, and isValid().
Referenced by isValid().
|
staticinherited |
It loads the internal MAP of geometry type names to geometry type ids.
References loadGeomTypeId().
Referenced by loadGeomTypeId().
|
inlinevirtualinherited |
It returns a derived GeometryCollection value according to the specified coordinate value.
| mValue | The coordinate value. |
| Exception | It will throw an exception if the operation could not be performed. |
Definition at line 695 of file Geometry.h.
References _NOEXCEPT_OP, Geometry(), locateAlong(), and locateBetween().
Referenced by locateAlong().
|
virtual |
It returns a derived geometry collection value according to the range of coordinate values inclusively.
| mStart | The initial coordinate value. |
| mEnd | The final coordinate value. |
Reimplemented from te::gm::Geometry.
References locateBetween().
Referenced by locateBetween().
| void te::gm::CompoundCurve::makeEmpty | ( | ) |
It clears all the segments.
| CompoundCurve & te::gm::CompoundCurve::operator= | ( | const CompoundCurve & | rhs | ) |
Assignment operator.
| rhs | The other geometry. |
References CompoundCurve().
|
virtualinherited |
It returns true if this geometry object spatially overlaps rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and overlaps().
Referenced by overlaps().
|
virtualinherited |
It returns the spatial relation between this geometry object and the rhs geometry.
| rhs | The another geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and relate().
|
virtualinherited |
It returns true if this geometry object is spatially related to rhs geometry according to the pattern expressed by the intersection matrix.
It does this by testing for intersections between the interior, boundary and exterior of the two geometric objects as specified by the values in the matrix.
| rhs | The other geometry to be compared. |
| matrix | The intersection matrix. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and relate().
|
virtual | |||||||||||||
It sets the Spatial Reference System ID of the compound curve.
| srid | The Spatial Reference System ID to be associated to the compound curve. |
Implements te::gm::Geometry.
References setSRID().
Referenced by setSRID().
|
inline |
It returns the number of elements in the compound geometry.
Definition at line 253 of file CompoundCurve.h.
References m_curves, and size().
Referenced by CompoundCurve(), and size().
|
virtualinherited |
It returns a geometric object that represents the point set symetric difference with another geometry.
| rhs | The other geometry whose symetric difference with this geometry will be calculated. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and symDifference().
Referenced by symDifference().
|
inlinevirtualinherited |
It returns the data value in a WKT representation.
Implements te::dt::AbstractData.
Definition at line 953 of file Geometry.h.
References asText(), and toString().
Referenced by toString().
|
virtualinherited |
It returns true if the geometry object spatially touches rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and touches().
Referenced by touches().
|
virtualinherited |
It converts the coordinate values of the geometry to the new spatial reference system.
After calling this method the geometry will be associated to the new SRID.
| srid | The new Spatial Reference System ID used to transform the coordinates of the geometry. |
| Exception | It will throw an exception if it can not do the transformation. |
It returns a geometric object that represents the point set union with another geometry.
| rhs | Another geometry whose union with this geometry will be calculated. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and Union().
Referenced by Union().
|
virtualinherited |
It returns true if the geometry object is spatially within rhs geometry.
| rhs | The other geometry to be compared. |
| std::exception | It will throw an exception if the operation could not be performed. |
References _NOEXCEPT_OP, Geometry(), and within().
Referenced by within().
|
protected |
The list of segments of the compund curve.
Definition at line 308 of file CompoundCurve.h.
Referenced by getCurves(), getCurves(), and size().
|
protectedinherited |
|
mutableprotectedinherited |
The geometry minimum bounding rectangle.
Definition at line 961 of file Geometry.h.
|
protectedinherited |
The Spatial Reference System code associated to the Geometry.
Definition at line 960 of file Geometry.h.
Referenced by getSRID().
|
staticprotectedinherited |
A set of geometry type names (in UPPER CASE).
Definition at line 963 of file Geometry.h.
|
staticprivate |
Definition at line 312 of file CompoundCurve.h.