A Line is LineString with 2 points. More...
#include <Line.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. More... | |
Initializer methods on geometric objects | |
Methods for initializing a geometric object. | |
Line (GeomType t, int srid=0, Envelope *mbr=0) | |
It initializes the line with the specified spatial reference system id and envelope. More... | |
Line (const Point &first, const Point &second, GeomType t, int srid=0, Envelope *mbr=0) | |
It initializes the linestring with the specified spatial reference system id and envelope. More... | |
Line (const Line &rhs) | |
Copy constructor. More... | |
~Line () | |
Virtual destructor. More... | |
Line & | operator= (const Line &rhs) |
Assignment operator. More... | |
Re-Implementation from AbstractData | |
Methods re-Implementated from AbstractData. | |
te::dt::AbstractData * | clone () const |
It clones the line. More... | |
bool | intersection (const Line &line, Point &coord) const |
double | Angle () |
void | setCoord (int index, double x, double y, double z=0., double m=0.) |
double | distance (te::gm::Point p) |
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: LineString. More... | |
void | setSRID (int srid) throw () |
It sets the Spatial Reference System ID of the linestring. More... | |
void | convert (te::srs::Converter *converter) override |
It converts the coordinate values of the linestring to the new spatial reference system. More... | |
void | computeMBR (bool cascade) const throw () |
It computes the minimum bounding rectangle for the linestring. More... | |
std::size_t | getNPoints () const throw () |
It returns the number of points (vertexes) in the linestring. More... | |
Geometry * | locateBetween (const double &mStart, const double &mEnd) const |
It returns a derived geometry collection value according to the range of coordinate values inclusively. More... | |
Re-Implementation from Curve | |
Methods re-impleented from Curve. | |
std::unique_ptr< Point > | getStartPoint () const |
The length of this Curve in its associated spatial reference. More... | |
std::unique_ptr< Point > | getEndPoint () const |
It returns the curve end point. More... | |
bool | isClosed () const |
It returns true if the curve is closed (startPoint = endPoint). More... | |
Curve Specific Methods | |
Specific methods for a Curve. | |
virtual double | getLength () const |
The length of this curve in the unit associated to its spatial reference system. More... | |
bool | isRing () const |
It returns true if the curve is closed and simple. More... | |
Re-Implmentation of methods from Geometry class | |
Re-Implmentation of basic methods from Geometry class. | |
Dimensionality | getDimension () const throw () |
Curves are 1-dimensional objects. More... | |
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. More... | |
GeomType | getGeomTypeId () const _NOEXCEPT_OP(true) |
It returns the geometry subclass type identifier. More... | |
virtual const std::string | get2DGeometryType () const _NOEXCEPT_OP(true) |
It returns the name of 2D geometry subclass. More... | |
virtual GeomType | get2DGeomTypeId () const _NOEXCEPT_OP(true) |
It returns the 2D geometry subclass type identifier. More... | |
int | getSRID () const _NOEXCEPT_OP(true) |
It returns the Spatial Reference System ID associated to this geometric object. More... | |
virtual void | transform (const int &srid) _NOEXCEPT_OP(false) |
It converts the coordinate values of the geometry to the new spatial reference system. More... | |
Geometry * | getEnvelope () const _NOEXCEPT_OP(true) |
It returns the minimum bounding rectangle (MBR) for the geometry. More... | |
const Envelope * | getMBR () const _NOEXCEPT_OP(true) |
It returns the minimum bounding rectangle for the geometry in an internal representation. More... | |
std::string | asText () const _NOEXCEPT_OP(true) |
It returns an string with the Well-Known Text Representation for the geometry. More... | |
char * | asBinary (std::size_t &size) const _NOEXCEPT_OP(false) |
It serializes the geometric object to a Well-known Binary Representation (WKB). More... | |
std::size_t | getWkbSize () const _NOEXCEPT_OP(true) |
It returns the size required by a WKB representation for this geometric object. More... | |
void | getWkb (char *wkb, te::common::MachineByteOrder byteOrder) const _NOEXCEPT_OP(false) |
It serializes the geometry to a WKB representation into the specified buffer. More... | |
virtual bool | isEmpty () const _NOEXCEPT_OP(false) |
It returns true if this geometric object is the empty Geometry. More... | |
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. More... | |
virtual bool | isValid () const _NOEXCEPT_OP(false) |
It tells if the geometry is well formed. More... | |
bool | is3D () const _NOEXCEPT_OP(true) |
It returns true if this geometric object has z coordinate values. More... | |
bool | isMeasured () const _NOEXCEPT_OP(true) |
It returns true if this geometric object has m coordinate values. More... | |
bool | isCollection () const _NOEXCEPT_OP(true) |
It returns true if this geometric object is a collection. More... | |
virtual Geometry * | getBoundary () const _NOEXCEPT_OP(false) |
It returns the geometry boundary. More... | |
te::gm::Coord2D | getCentroid () const _NOEXCEPT_OP(false) |
It will get the centroid of the input geometries. More... | |
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. More... | |
virtual bool | disjoint (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
It returns true if the geometry object is spatially disjoint from rhs geometry. More... | |
virtual bool | intersects (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
It returns true if the geometry object spatially intersects rhs geometry. More... | |
virtual bool | touches (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
It returns true if the geometry object spatially touches rhs geometry. More... | |
virtual bool | crosses (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
It returns true if the geometry object spatially crosses rhs geometry. More... | |
virtual bool | within (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
It returns true if the geometry object is spatially within rhs geometry. More... | |
virtual bool | contains (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
It returns true if this geometry object spatially contains rhs geometry. More... | |
virtual bool | overlaps (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
It returns true if this geometry object spatially overlaps rhs geometry. More... | |
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. More... | |
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. More... | |
virtual bool | covers (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
It returns true if this geometry object spatially covers the rhs geometry. More... | |
virtual bool | coveredBy (const Geometry *const rhs) const _NOEXCEPT_OP(false) |
It returns true if this geometry object is spatially covered by rhs geometry. More... | |
virtual Geometry * | locateAlong (const double &mValue) const _NOEXCEPT_OP(false) |
It returns a derived GeometryCollection value according to the specified coordinate value. More... | |
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. More... | |
virtual Geometry * | buffer (const double &distance) const _NOEXCEPT_OP(false) |
This method calculates the buffer of a geometry. More... | |
virtual Geometry * | buffer (const double &distance, int quadrantSegments) const _NOEXCEPT_OP(false) |
This method calculates the buffer of a geometry. More... | |
virtual Geometry * | buffer (const double &distance, int quadrantSegments, BufferCapStyle endCapStyle) const _NOEXCEPT_OP(false) |
This method calculates the buffer of a geometry. More... | |
virtual Geometry * | convexHull () const _NOEXCEPT_OP(false) |
This method calculates the Convex Hull of a geometry. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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). More... | |
static std::string | getGeomTypeString (const int &gId) |
It returns the TerraLib geometry type string given a type id. More... | |
static bool | isGeomType (const std::string &stype) |
It tells if the given string is a geometry data type. More... | |
static void | loadGeomTypeId () |
It loads the internal MAP of geometry type names to geometry type ids. More... | |
LineString Specific Methods | |
Specific methods for a LineString. | |
std::size_t | size () const |
It returns the number of points (vertexes) in the geometry. More... | |
void | setNumCoordinates (std::size_t size) |
It reserves room for the number of coordinates in this LineString. More... | |
void | makeEmpty () |
It clears all the coordinates. More... | |
std::unique_ptr< Point > | getPointN (std::size_t i) const |
It returns the specified point in this LineString. More... | |
void | setPointN (std::size_t i, const Point &p) |
It sets the value of the specified point to this new one. More... | |
void | setPoint (std::size_t i, const double &x, const double &y) |
It sets the value of the specified point. More... | |
void | setPointZ (std::size_t i, const double &x, const double &y, const double &z) |
It sets the value of the specified point. More... | |
void | setPointM (std::size_t i, const double &x, const double &y, const double &m) |
It sets the value of the specified point. More... | |
void | setPointZM (std::size_t i, const double &x, const double &y, const double &z, const double &m) |
It sets the value of the specified point. More... | |
const double & | getX (std::size_t i) const |
It returns the n-th x coordinate value. More... | |
const double & | getY (std::size_t i) const |
It returns the n-th y coordinate value. More... | |
const double & | getZ (std::size_t i) const |
It returns the n-th z coordinate value. More... | |
double * | getZ () const |
It returns a pointer to the internal array of z-values. More... | |
const double & | getM (std::size_t i) const |
It returns the n-th m measure value. More... | |
double * | getM () const |
It returns a pointer to the internal array of m-values. More... | |
void | setX (std::size_t i, const double &x) |
It sets the n-th x coordinate value. More... | |
void | setY (std::size_t i, const double &y) |
It sets the n-th y coordinate value. More... | |
void | setZ (std::size_t i, const double &z) |
It sets the n-th z coordinate value. More... | |
void | setM (std::size_t i, const double &m) |
It sets the n-th m measure value. More... | |
Coord2D * | getCoordinates () const |
It returns a pointer to the internal array of coordinates. More... | |
Coord2D * | m_coords |
A pointer to x, y values. More... | |
double * | m_zA |
A pointer to z values. More... | |
double * | m_mA |
A pointer to m values. More... | |
std::size_t | m_nPts |
The number of coordinates of the LineString. More... | |
static const std::string | sm_typeName |
AbstractData Re-implementation | |
Methods re-implemneted from AbstractData. | |
int | getTypeCode () const |
It returns the data type code associated to the data value. More... | |
std::string | toString () const |
It returns the data value in a WKT representation. More... | |
GeomType | m_gType |
Internal geometry type. More... | |
int | m_srid |
The Spatial Reference System code associated to the Geometry. More... | |
Envelope * | m_mbr |
The geometry minimum bounding rectangle. More... | |
static std::map< std::string, GeomType > | sm_geomTypeMap |
A set of geometry type names (in UPPER CASE). More... | |
A Line is LineString with 2 points.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
It initializes the line with the specified spatial reference system id and envelope.
t | The internal type of the linestring. |
srid | The Spatial Reference System ID associated to the linestring. |
mbr | The minimum bounding rectangle of this geometry (i.e., its envelope). |
te::gm::Line::Line | ( | const Point & | first, |
const Point & | second, | ||
GeomType | t, | ||
int | srid = 0 , |
||
Envelope * | mbr = 0 |
||
) |
It initializes the linestring with the specified spatial reference system id and envelope.
size | The number of points in the Line. It must be a value greater than 0. |
t | The internal type of the linestring. |
srid | The Spatial Reference System ID associated to the linestring. |
mbr | The minimum bounding rectangle of this geometry (i.e., its envelope). |
te::gm::Line::Line | ( | const Line & | rhs | ) |
Copy constructor.
rhs | The other geometry. |
te::gm::Line::~Line | ( | ) |
Virtual destructor.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
double te::gm::Line::Angle | ( | ) |
\ Returns the slope of the segment \ If the line is vertical returns DBL_MAX
|
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. |
|
inherited |
It returns an string with the Well-Known Text Representation for the geometry.
|
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. |
|
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. |
|
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. |
|
virtual |
It clones the line.
Reimplemented from te::gm::LineString.
|
virtualinherited |
It computes the minimum bounding rectangle for the linestring.
cascade | For linestring this flag doesn't have effect. |
Implements te::gm::Geometry.
|
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. |
|
overridevirtualinherited |
It converts the coordinate values of the linestring to the new spatial reference system.
After calling this method the linestring 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.
|
virtualinherited |
This method calculates the Convex Hull of a geometry.
std::exception | It will throw an exception if the operation could not be performed. |
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. |
|
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. |
|
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. |
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. |
|
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. |
Referenced by 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. |
double te::gm::Line::distance | ( | te::gm::Point | p | ) |
|
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. |
|
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. |
|
virtualinherited |
It returns the name of 2D geometry subclass.
The name of the 2D geometry subclass may be one of the following:
|
virtualinherited |
It returns the 2D geometry subclass type identifier.
|
virtualinherited |
It returns the geometry boundary.
std::exception | It will throw an exception if the operation could not be performed. |
|
inherited |
It will get the centroid of the input geometries.
std::exception | It will throw an exception if the operation could not be performed. |
|
inherited |
It returns the number of measurements or axes needed to describe a position in a coordinate system.
It returns:
|
inlineinherited |
It returns a pointer to the internal array of coordinates.
Definition at line 458 of file LineString.h.
Referenced by te::rst::PolygonIterator< T >::getBBOXIntersectionRanges().
|
virtualinherited |
|
virtualinherited |
It returns the curve end point.
Implements te::gm::Curve.
Referenced by te::rst::PolygonIterator< T >::getScanLineIntersectionRanges(), and te::rst::LineIterator< T >::LineIterator().
|
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)].
|
virtualinherited |
The name of instantiable subtype is: LineString.
Implements te::gm::Geometry.
|
inlineinherited |
It returns the geometry subclass type identifier.
Definition at line 182 of file Geometry.h.
|
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. |
|
staticinherited |
It returns the TerraLib geometry type string given a type id.
gId | The geometry type id. |
|
virtualinherited |
The length of this curve in the unit associated to its spatial reference system.
Reimplemented in te::gm::CircularString, and te::gm::CompoundCurve.
|
inlineinherited |
It returns a pointer to the internal array of m-values.
Definition at line 486 of file LineString.h.
|
inherited |
It returns the n-th m measure value.
i | The n-th coordinate. |
|
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.
|
inlinevirtualinherited |
It returns the number of points (vertexes) in the linestring.
Implements te::gm::Geometry.
Definition at line 195 of file LineString.h.
|
inherited |
It returns the specified point in this LineString.
i | The index of the point you want to retrieve. |
|
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.
Referenced by te::rst::PolygonIterator< T >::getScanLineIntersectionRanges(), te::rst::PolygonIterator< T >::initialize(), and te::rst::LineIterator< T >::LineIterator().
|
virtualinherited |
The length of this Curve in its associated spatial reference.
It returns the curve start point.
Implements te::gm::Curve.
Referenced by te::rst::PolygonIterator< T >::getScanLineIntersectionRanges(), and te::rst::LineIterator< T >::LineIterator().
|
virtualinherited |
It returns the data type code associated to the data value.
Implements te::dt::AbstractData.
|
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. |
|
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.
|
inherited |
It returns the n-th x coordinate value.
i | The n-th coordinate. |
Referenced by te::rst::PolygonIterator< T >::getScanLineIntersectionRanges().
|
inherited |
It returns the n-th y coordinate value.
i | The n-th coordinate. |
Referenced by te::rst::PolygonIterator< T >::getScanLineIntersectionRanges().
|
inlineinherited |
It returns a pointer to the internal array of z-values.
Definition at line 472 of file LineString.h.
|
inherited |
It returns the n-th z coordinate value.
i | The n-th coordinate. |
|
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. |
Referenced by 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. |
|
inherited |
It returns true if this geometric object has z coordinate values.
|
virtualinherited |
It returns true if the curve is closed (startPoint = endPoint).
Implements te::gm::Curve.
|
inherited |
It returns true if this geometric object is a collection.
|
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. |
Referenced by te::rst::LineIterator< T >::LineIterator().
|
staticinherited |
It tells if the given string is a geometry data type.
stype | The geometry type to be checked. |
|
inherited |
It returns true if this geometric object has m coordinate values.
|
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. |
|
virtualinherited |
It tells if the geometry is well formed.
std::exception | It will throw an exception if the operation could not be performed. |
|
staticinherited |
It loads the internal MAP of geometry type names to geometry type ids.
|
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.
|
virtualinherited |
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.
|
inherited |
It clears all the coordinates.
After calling this method you can not use the set methods. You will need to use the setNumCoordinates method in order to use the set methods.
Assignment operator.
rhs | The other geometry. |
|
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. |
|
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. |
|
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. |
void te::gm::Line::setCoord | ( | int | index, |
double | x, | ||
double | y, | ||
double | z = 0. , |
||
double | m = 0. |
||
) |
\ Sets coordinates of the segment
index | 0 or 1 poisition of coordinate |
x | x value of coordinate |
y | y value of coordinate |
z | z value of coordinate |
m | m value of coordinate |
|
inherited |
It sets the n-th m measure value.
i | The coordinate index. |
m | The m value. |
|
inherited |
It reserves room for the number of coordinates in this LineString.
size | The number of coordinates reserved for the LineString. |
Referenced by te::rst::PolygonIterator< T >::getBBOXIntersectionRanges().
|
inherited |
It sets the value of the specified point.
i | The index where the point will be set to the new value. |
x | The x coordinate value. |
y | The y coordinate value. |
|
inherited |
It sets the value of the specified point.
i | The index where the point will be set to the new value. |
x | The x coordinate value. |
y | The y coordinate value. |
m | The m coordinate value. |
|
inherited |
It sets the value of the specified point to this new one.
i | The index where the point will be set to the new value. |
p | The new point value. |
|
inherited |
It sets the value of the specified point.
i | The index where the point will be set to the new value. |
x | The x coordinate value. |
y | The y coordinate value. |
z | The z coordinate value. |
|
inherited |
It sets the value of the specified point.
i | The index where the point will be set to the new value. |
x | The x coordinate value. |
y | The y coordinate value. |
z | The z coordinate value. |
m | The m coordinate value. |
|
virtualinherited |
It sets the Spatial Reference System ID of the linestring.
srid | The Spatial Reference System ID to be associated to the linestring. |
Implements te::gm::Geometry.
|
inherited |
It sets the n-th x coordinate value.
i | The coordinate index. |
x | The x value. |
Referenced by te::rst::PolygonIterator< T >::getScanLineIntersectionRanges().
|
inherited |
It sets the n-th y coordinate value.
i | The coordinate index. |
y | The y value. |
Referenced by te::rst::PolygonIterator< T >::getScanLineIntersectionRanges().
|
inherited |
It sets the n-th z coordinate value.
i | The coordinate index. |
z | The z value. |
|
inlineinherited |
It returns the number of points (vertexes) in the geometry.
Definition at line 264 of file LineString.h.
Referenced by te::rst::PolygonIterator< T >::getScanLineIntersectionRanges().
|
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. |
|
inlinevirtualinherited |
It returns the data value in a WKT representation.
Implements te::dt::AbstractData.
Definition at line 953 of file Geometry.h.
|
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. |
|
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. |
|
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. |
|
protectedinherited |
A pointer to x, y values.
Definition at line 495 of file LineString.h.
|
protectedinherited |
Internal geometry type.
Definition at line 959 of file Geometry.h.
|
protectedinherited |
A pointer to m values.
Definition at line 497 of file LineString.h.
|
mutableprotectedinherited |
The geometry minimum bounding rectangle.
Definition at line 961 of file Geometry.h.
|
protectedinherited |
The number of coordinates of the LineString.
Definition at line 498 of file LineString.h.
|
protectedinherited |
The Spatial Reference System code associated to the Geometry.
Definition at line 960 of file Geometry.h.
|
protectedinherited |
A pointer to z values.
Definition at line 496 of file LineString.h.
|
staticprotectedinherited |
A set of geometry type names (in UPPER CASE).
Definition at line 963 of file Geometry.h.
|
staticprivateinherited |
Definition at line 502 of file LineString.h.