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 | transform (int srid) throw (te::common::Exception) |
| 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 throw (Exception) |
| 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... | |
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... | |
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... | |
| 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... | |
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... | |
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... | |
Protected Attributes | |
| Coord2D * | m_coords |
| A pointer to x, y values. More... | |
| GeomType | m_gType |
| Internal geometry type. More... | |
| double * | m_mA |
| A pointer to m values. More... | |
| Envelope * | m_mbr |
| The geometry minimum bounding rectangle. More... | |
| std::size_t | m_nPts |
| The number of coordinates of the LineString. More... | |
| int | m_srid |
| The Spatial Reference System code associated to the Geometry. More... | |
| double * | m_zA |
| A pointer to z values. More... | |
Static Protected Attributes | |
| 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). |
Definition at line 45 of file Line.cpp.
References te::gm::Point::getM(), te::gm::Point::getX(), te::gm::Point::getY(), te::gm::Point::getZ(), Line(), te::gm::LineString::m_coords, te::gm::LineString::m_mA, te::gm::LineString::m_zA, operator=(), te::gm::Coord2D::x, te::gm::Coord2D::y, and ~Line().
|
default |
Copy constructor.
| rhs | The other geometry. |
|
default |
Virtual destructor.
Referenced by Line().
|
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
Definition at line 104 of file Line.cpp.
References dx, te::gm::LineString::m_coords, te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
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. |
Definition at line 123 of file geometry/Geometry.cpp.
References te::gm::Geometry::getWkb(), te::gm::WKBSize::size(), and te::common::Globals::sm_machineByteOrder.
Referenced by Geometry_AsBinary(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), and TsGeometry::tcCreatePointZM().
|
inherited |
It returns an string with the Well-Known Text Representation for the geometry.
Definition at line 112 of file geometry/Geometry.cpp.
References te::gm::WKTWriter::write().
Referenced by ConvertCoordinates(), createGeometries(), Geometry_AsText(), readWkts(), RetrieveUsingSpatialFilter(), setOperationsExamples(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), TsGeometry::tcCreatePolygon(), and wkbConversionExamples().
|
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. |
Definition at line 621 of file geometry/Geometry.cpp.
References te::gm::CapRoundType, te::gm::Geometry::distance(), and TE_GEOS_DEFAULT_QUADRANT_SEGMENTS.
Referenced by te::gm::Geometry::buffer(), te::gm::FixGeometryTopology::fixSelfIntersection(), and te::vp::BufferMemory::setBuffer().
|
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. |
Definition at line 630 of file geometry/Geometry.cpp.
References te::gm::Geometry::buffer(), te::gm::CapRoundType, and te::gm::Geometry::distance().
|
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. |
Definition at line 635 of file geometry/Geometry.cpp.
References te::gm::Geometry::distance(), te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
|
virtual |
It clones the line.
Reimplemented from te::gm::LineString.
Definition at line 82 of file Line.cpp.
References Line().
|
virtualinherited | ||||||||||||||
It computes the minimum bounding rectangle for the linestring.
| cascade | For linestring this flag doesn't have effect. |
Implements te::gm::Geometry.
Definition at line 202 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Geometry::m_mbr, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::gm::Envelope::makeInvalid(), te::gm::LineString::size(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by ConvertToMillimeter(), te::rst::Vectorizer::detectEdge(), RemapToPlanar(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), and te::gm::LineString::transform().
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. |
Definition at line 436 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_Contains(), te::edit::Repository::getFeature(), te::attributefill::VectorToVectorMemory::getMinimumDistanceFromCentroid(), te::edit::VertexTool::mouseMoveEvent(), te::gm::SatisfySpatialRelation(), spatialRelation(), and te::edit::DeletePartTool::storeFeature().
|
virtualinherited |
This method calculates the Convex Hull of a geometry.
| std::exception | It will throw an exception if the operation could not be performed. |
Definition at line 659 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_ConvexHull(), te::gm::GTFilter::getPt1ConvexHullArea(), and te::rp::GetTPConvexHullArea().
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. |
Definition at line 566 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_CoveredBy(), te::gm::SatisfySpatialRelation(), and spatialRelation().
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. |
Definition at line 541 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by te::edit::SubtractAreaTool::buildPolygon(), Geometry_Covers(), te::gm::SatisfySpatialRelation(), and spatialRelation().
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. |
Definition at line 386 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_Crosses(), te::edit::Repository::getFeature(), te::gm::SatisfySpatialRelation(), spatialRelation(), and te::edit::DeletePartTool::storeFeature().
|
virtualinherited |
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. |
Definition at line 739 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by te::edit::SubtractAreaTool::buildPolygon(), difference(), te::vp::BufferMemory::dissolveMemory(), te::vp::BufferQuery::dissolveQuery(), Geometry_Difference(), and te::vp::BufferMemory::setBuffer().
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. |
Definition at line 310 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_Disjoint(), te::gm::SatisfySpatialRelation(), spatialRelation(), te::edit::MergeGeometriesTool::spatialRelationDisjoint(), GAP::step3(), GAP::step4(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), and TsGeometry::tcCreatePolygon().
| double te::gm::Line::distance | ( | te::gm::Point | p | ) |
Definition at line 133 of file Line.cpp.
References te::gm::A, te::gm::Point::getX(), te::gm::Point::getY(), te::gm::LineString::m_coords, te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
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. |
Definition at line 596 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by te::gm::AdjustSegment(), BOOST_AUTO_TEST_CASE(), te::gm::Geometry::buffer(), te::sa::CalculateDistance(), te::sa::GPMConstructorAdjacencyStrategy::constructStrategy(), te::sa::GPMConstructorDistanceStrategy::constructStrategy(), te::gm::Geometry::dWithin(), te::st::IDWInterpolator::estimate(), Geometry_Distance(), te::gm::GetIntersectionPointsByOperators(), and te::gm::DistanceOrderFunctor::operator()().
|
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. |
Definition at line 797 of file geometry/Geometry.cpp.
References te::gm::Geometry::distance(), te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_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. |
Definition at line 282 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_Equals(), te::gm::SatisfySpatialRelation(), spatialRelation(), TsGEOSWriterReader::tcCreateGeomCollectionFromWKTAndApplyGEOSTests(), TsWKBReader::tcCreateGeometriesAndApplyReadTests(), TsGEOSWriterReader::tcCreateGeometriesAndApplyReadTests(), TsWKBReader::tcCreateGeomFromWKTAndApplyReadTests(), TsGEOSWriterReader::tcCreateLinesFromWKTAndApplyGEOSTests(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGEOSWriterReader::tcCreatePointsFromWKTAndApplyGEOSTests(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), TsGeometry::tcCreatePolygon(), TsGEOSWriterReader::tcCreatePolygonFromWKTAndApplyGEOSTests(), TsArray::tcGetData(), TsArray::tcOperatorBraket(), and wkbConversionExamples().
|
virtualinherited |
It returns the name of 2D geometry subclass.
The name of the 2D geometry subclass may be one of the following:
Definition at line 834 of file geometry/Geometry.cpp.
References te::gm::CircularStringMType, te::gm::CircularStringType, te::gm::CircularStringZMType, te::gm::CircularStringZType, te::gm::CompoundCurveMType, te::gm::CompoundCurveType, te::gm::CompoundCurveZMType, te::gm::CompoundCurveZType, te::gm::CurvePolygonMType, te::gm::CurvePolygonType, te::gm::CurvePolygonZMType, te::gm::CurvePolygonZType, te::gm::GeometryCollectionMType, te::gm::GeometryCollectionType, te::gm::GeometryCollectionZMType, te::gm::GeometryCollectionZType, te::gm::GeometryMType, te::gm::GeometryType, te::gm::GeometryZMType, te::gm::GeometryZType, te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::gm::Geometry::m_gType, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiLineStringZMType, te::gm::MultiLineStringZType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, te::gm::MultiSurfaceMType, te::gm::MultiSurfaceType, te::gm::MultiSurfaceZMType, te::gm::MultiSurfaceZType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, te::gm::PointZType, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, and te::gm::PolygonZType.
|
virtualinherited |
It returns the 2D geometry subclass type identifier.
Definition at line 915 of file geometry/Geometry.cpp.
References te::gm::CircularStringMType, te::gm::CircularStringType, te::gm::CircularStringZMType, te::gm::CircularStringZType, te::gm::CompoundCurveMType, te::gm::CompoundCurveType, te::gm::CompoundCurveZMType, te::gm::CompoundCurveZType, te::gm::CurvePolygonMType, te::gm::CurvePolygonType, te::gm::CurvePolygonZMType, te::gm::CurvePolygonZType, te::gm::GeometryCollectionMType, te::gm::GeometryCollectionType, te::gm::GeometryCollectionZMType, te::gm::GeometryCollectionZType, te::gm::GeometryMType, te::gm::GeometryType, te::gm::GeometryZMType, te::gm::GeometryZType, te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::gm::Geometry::m_gType, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiLineStringZMType, te::gm::MultiLineStringZType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, te::gm::MultiSurfaceMType, te::gm::MultiSurfaceType, te::gm::MultiSurfaceZMType, te::gm::MultiSurfaceZType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, te::gm::PointZType, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, te::gm::PolygonZType, and te::gm::UnknownGeometryType.
Referenced by te::gm::Geometry::isCollection().
|
virtualinherited |
It returns the geometry boundary.
| std::exception | It will throw an exception if the operation could not be performed. |
Definition at line 237 of file geometry/Geometry.cpp.
References b, TE_TR, and te::gm::GEOSWriter::write().
Referenced by te::ag::Canvas::draw(), Geometry_GetBoundary(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), and TsGeometry::tcCreatePolygon().
|
inherited |
It will get the centroid of the input geometries.
| std::exception | It will throw an exception if the operation could not be performed. |
Definition at line 257 of file geometry/Geometry.cpp.
References TE_TR, te::gm::GEOSWriter::write(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::sa::CreateMatrixFromDataSet(), te::edit::RotateGeometryTool::draw(), te::gm::FixGeometryTopology::fixSelfIntersection(), and te::edit::Rotate().
|
inherited |
It returns the number of measurements or axes needed to describe a position in a coordinate system.
It returns:
Definition at line 94 of file geometry/Geometry.cpp.
References te::gm::GetCoordDimension(), and te::gm::Geometry::m_gType.
Referenced by Geometry_GetCoordinateDimension(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), TsGeometry::tcCreatePolygon(), TsGeometry::tcMisc(), and te::gm::WKBSize::visit().
|
inlineinherited |
It returns a pointer to the internal array of coordinates.
Definition at line 456 of file LineString.h.
Referenced by te::mnt::Smooth::AdjustCatmullRom(), te::mnt::SplineInterpolationGrass::AdjustLinear(), te::qt::widgets::Canvas::draw(), te::ag::Canvas::draw(), te::qt::widgets::Canvas::drawContour(), te::gm::WKBReader::getLinearRing(), te::gm::WKBReader::getLineString(), te::rp::Blender::getSegments(), te::rp::Blender::initialize(), LineString_GetCoordinates(), te::mnt::SplineInterpolationGrass::pointListSimplify(), te::mnt::pointListSimplify(), GAP::step0(), GAP::step00(), GAP::verify_polygon(), te::gm::WKTWriter::visit(), Write2EWKB(), and te::gm::Write2WKB().
|
virtualinherited | |||||||||||||
Curves are 1-dimensional objects.
Implements te::gm::Geometry.
Definition at line 74 of file geometry/Curve.cpp.
References te::gm::L.
Referenced by TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), and TsGeometry::tcMisc().
|
virtualinherited |
It returns the curve end point.
Implements te::gm::Curve.
Definition at line 249 of file geometry/LineString.cpp.
References te::gm::LineString::getPointN(), te::gm::LineString::m_nPts, and te::gm::LineString::size().
Referenced by te::mnt::CreateIsolines::connectLines(), te::qt::widgets::Measure::drawLine(), te::gm::GetIntersectionPointsByOperators(), te::gm::GetIntersectionPointsByPerpendicularDistance(), 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)].
Definition at line 99 of file geometry/Geometry.cpp.
References te::gm::GetGeomFromEnvelope(), te::gm::Geometry::getMBR(), and te::gm::Geometry::m_srid.
Referenced by Geometry_GetEnvelope(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), and TsGeometry::tcCreatePolygon().
|
virtualinherited | |||||||||||||
The name of instantiable subtype is: LineString.
Implements te::gm::Geometry.
Definition at line 167 of file geometry/LineString.cpp.
References te::gm::LineString::sm_typeName.
Referenced by TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), and TsGeometry::tcMisc().
|
inlineinherited |
It returns the geometry subclass type identifier.
Definition at line 180 of file geometry/Geometry.h.
References _NOEXCEPT_OP.
Referenced by terralib4::Transactor::addProperty(), te::map::QueryLayerRenderer::buildChart(), te::map::AbstractLayerRenderer::buildChart(), te::vp::GeometricOpMemory::CalculateTabularOp(), te::gm::FixGeometryTopology::closeGeometryRing(), te::edit::Convert2LayerGeomType(), te::graph::RAGGraphBuilder::createVertexObjects(), te::graph::FlowGraphBuilder::createVertexObjects(), te::rst::CropRaster(), te::edit::Renderer::draw(), te::qt::widgets::Canvas::draw(), te::ag::Canvas::draw(), te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), te::qt::widgets::ClippingWizard::executeLayerClipping(), te::qt::widgets::ClippingWizard::executeLayerClippingAttribute(), te::vp::ExtractGeometry(), te::edit::FindSegment(), te::gm::FixGeometryTopology::fixSelfIntersection(), Geometry_GetGeomTypeId(), te::v8::jsi::Geometry_Make(), Geometry_StaticGetGeomTypeId(), te::attributefill::VectorToVectorMemory::getAllPointsOfGeometry(), te::sa::GetArea(), te::attributefill::VectorToVectorMemory::getArea(), te::gm::GetAsMultiLineStringVector(), te::edit::GetCoordinates(), te::pgis::Transactor::getGeometryInfo(), te::vp::GetGeometryUnion(), te::gm::GetIntersectionLine(), te::vp::PolygonToLineMemory::getLines(), te::edit::GetLines(), te::addressgeocoding::AddressGeocodingOp::getLines(), te::gm::GetMultiLineStringType(), te::vp::LineToPolygonMemory::getPolygons(), te::qt::widgets::FilterDialogForm::getRasterFromROI(), te::qt::widgets::ColorTransformDialog::getRasterFromROI(), te::attributefill::RasterToVector::getTexture(), te::gm::Geometry::isGeomType(), te::edit::MoveGeometry(), te::edit::Renderer::prepare(), te::gm::PrepareGeometriesToIntersection(), te::serialize::xml::Read(), te::vp::Union::setGeomAsMulti(), te::vp::Difference::setGeomAsMulti(), te::vp::SetGeomAsMulti(), te::vp::MultipartToSinglepart::single2multi(), GAP::step3(), te::edit::DeletePartTool::storeFeature(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), TsGeometry::tcCreatePolygon(), TsGeometry::tcMisc(), te::gm::WKBSize::visit(), te::gm::WKBWriter::visit(), te::pgis::EWKBWriter::visit(), te::gm::WKTWriter::visit(), Write2EWKB(), and te::gm::Write2WKB().
|
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. |
Definition at line 824 of file geometry/Geometry.cpp.
References te::gm::Geometry::sm_geomTypeMap, and te::gm::UnknownGeometryType.
|
staticinherited |
It returns the TerraLib geometry type string given a type id.
| gId | The geometry type id. |
Definition at line 996 of file geometry/Geometry.cpp.
References te::gm::Geometry::sm_geomTypeMap.
Referenced by te::vp::BufferDialog::onLayerComboBoxChanged(), and te::qt::widgets::LayerPropertiesInfo::setLayerVecProperties().
|
virtualinherited |
The length of this curve in the unit associated to its spatial reference system.
Reimplemented in te::gm::CircularString, and te::gm::CompoundCurve.
Definition at line 48 of file geometry/Curve.cpp.
References te::gm::Curve::operator=(), TE_TR, and te::gm::GEOSWriter::write().
Referenced by Curve_GetLength(), te::gm::MultiCurve::getLength(), and GAP::verifyIntersections().
|
inherited |
It returns the n-th m measure value.
| i | The n-th coordinate. |
Definition at line 419 of file geometry/LineString.cpp.
References te::gm::LineString::m_mA, and te::gm::LineString::m_nPts.
Referenced by te::gm::WKBReader::getLinearRing(), te::gm::WKBReader::getLineString(), LineString_GetM(), LineString_GetMCoords(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZM(), te::sqlite::EWKBSize::visit(), te::gm::WKBSize::visit(), te::gm::WKTWriter::visit(), Write2EWKB(), and te::gm::Write2WKB().
|
inlineinherited |
It returns a pointer to the internal array of m-values.
Definition at line 484 of file LineString.h.
|
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.
Definition at line 104 of file geometry/Geometry.cpp.
References te::gm::Geometry::computeMBR(), and te::gm::Geometry::m_mbr.
Referenced by AdaptativeKdTree(), te::map::QueryLayerRenderer::buildChart(), te::map::AbstractLayerRenderer::buildChart(), te::edit::Repository::buildIndex(), te::mnt::Tin::BuildTriangle(), computeDataSetEnvelope(), te::da::SpatialQueryProcessor::computeEnvelope(), te::gm::GeometryCollection::computeMBR(), te::gm::PolyhedralSurface::computeMBR(), te::mnt::CreateIsolines::connectLines(), te::graph::RAGGraphBuilder::createEdgeObjects(), te::rst::CropRaster(), DataSetAdapterLayerReader(), te::vp::BufferMemory::dissolveMemory(), te::vp::BufferQuery::dissolveQuery(), te::qt::widgets::Canvas::draw(), te::qt::widgets::Measure::drawPolygon(), te::rp::ClassifierDummyStrategy::execute(), te::rp::TiePointsMosaic::execute(), te::qt::widgets::ClippingWizard::executeLayerClipping(), te::stmem::DataSet::filter(), Geometry_GetMBR(), te::sqlite::DataSourceTransactor::getDataSet(), te::wcs::Transactor::getDataSet(), te::wms::Transactor::getDataSet(), te::ws::ogc::wcs::da::Transactor::getDataSet(), te::gm::Geometry::getEnvelope(), te::gm::GetGeometryUnion(), te::qt::widgets::ClippingWizardPage::getLayerClippingAttribute(), te::attributefill::VectorToVectorMemory::getMinimumDistanceFromCentroid(), te::da::SpatialQueryProcessor::getOIDSet(), te::st::Trajectory::getPatches(), te::sa::SamplePointsGeneratorStratified::getPointInGeometry(), te::qt::widgets::FilterDialogForm::getRasterFromROI(), te::qt::widgets::ColorTransformDialog::getRasterFromROI(), te::rst::TileIndexer::getTileIndex(), IndexPointUsingRTree(), te::mnt::TINGeneration::InsertNode(), te::qt::widgets::MixtureModelWizardPage::loadMixtureModelComponents(), Mask(), te::edit::DeleteGeometryByAreaTool::mouseReleaseEvent(), te::gm::PrepareGeometriesToIntersection(), te::mnt::Profile::runIsolinesProfile(), te::mnt::Profile::runTINProfile(), GAP::step4(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), TsGeometry::tcCreatePolygon(), TsRTree::tcRTreeGradeInts(), TsRTree::tcRTreeInts(), TsRTree::tcRTreePointers(), TsRTree::tcRTreeUnsignedInts(), te::rst::TileIndexer::TileIndexer(), te::gm::Envelope::transform(), and GAP::verifyIntersections().
|
inlinevirtualinherited | |||||||||||||
It returns the number of points (vertexes) in the linestring.
Implements te::gm::Geometry.
Definition at line 193 of file LineString.h.
Referenced by te::qt::widgets::MixtureModelWizardPage::addGeometryComponent(), te::gm::AddIntersectionPoints(), te::mnt::Smooth::AdjustCatmullRom(), te::mnt::SplineInterpolationGrass::AdjustLinear(), te::gm::WKTActions::buildLine(), te::qt::widgets::Measure::calculateLength(), te::mnt::Profile::calculateProfile(), te::gm::FixGeometryTopology::closeGeometryRing(), ConvertToMillimeter(), create_ds_memory(), te::qt::widgets::Canvas::draw(), te::ag::Canvas::draw(), te::qt::widgets::Canvas::drawContour(), te::qt::widgets::Measure::drawLine(), te::edit::Renderer::drawVertexes(), te::edit::FindSegment(), te::attributefill::VectorToVectorMemory::getAllPointsOfGeometry(), te::edit::GetCoordinates(), GetGeographicCoordLine(), te::gm::GetIntersectionLine(), te::vp::LineToPolygonMemory::getPolygons(), GetTextsPixmap(), te::rp::Blender::initialize(), te::mnt::TINGeneration::InsertBreakNodes(), te::mnt::TINGeneration::InsertNodes(), te::edit::IsSpecialRingVertex(), LineString_GetCoordinates(), LineString_GetMCoords(), LineString_GetZCoords(), LoadIsolines(), te::gm::locateAlong(), te::edit::MoveGeometry(), te::mnt::ProfileDialog::onGeometriesChanged(), te::mnt::SplineInterpolationGrass::pointListSimplify(), te::mnt::pointListSimplify(), GAP::Polygon2Lines(), GAP::Polygon2Points(), GAP::Polygon2RTree(), te::gm::PrepareGeometriesToIntersection(), te::qt::widgets::Grid::redraw(), RemapToPlanar(), te::attributefill::VectorToRaster::run(), te::mnt::Profile::runRasterProfile(), te::qt::widgets::MixtureModelWizardPage::saveMixtureModelComponents(), te::gm::SnapLineToPoints(), GAP::step0(), GAP::step00(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), te::edit::VertexTool::updateRTree(), te::sqlite::EWKBSize::visit(), and Write2EWKB().
|
inherited |
It returns the specified point in this LineString.
| i | The index of the point you want to retrieve. |
Definition at line 319 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::Geometry::m_gType, te::gm::LineString::m_mA, te::gm::LineString::m_nPts, te::gm::Geometry::m_srid, te::gm::LineString::m_zA, p, te::gm::PointMType, te::gm::PointZMType, and te::gm::PointZType.
Referenced by te::qt::widgets::MixtureModelWizardPage::addGeometryComponent(), te::gm::AddIntersectionPoints(), te::qt::widgets::AnimationItem::adjustDataToAnimationTemporalExtent(), te::mnt::Tin::BuildTriangle(), te::qt::widgets::Measure::calculateAngle(), te::qt::widgets::Measure::calculateLength(), create_ds_memory(), te::mnt::DouglasPeuckerTA(), te::edit::VertexTool::draw(), te::qt::widgets::Measure::drawLine(), te::edit::Renderer::drawVertexes(), te::mnt::GEOS_DouglasPeucker(), GEOS_DouglasPeucker(), te::attributefill::VectorToVectorMemory::getAllPointsOfGeometry(), te::gm::LineString::getEndPoint(), GetGeographicCoordLine(), te::gm::GetIntersectionLine(), te::gm::LineString::getStartPoint(), GetTextsPixmap(), TsManagerDataSource::initialize(), te::mnt::TINGeneration::InsertBreakNodes(), te::mnt::TINGeneration::InsertNodes(), LineString_GetPointN(), LoadIsolines(), te::gm::locateAlong(), GAP::Polygon2Lines(), GAP::Polygon2Points(), GAP::Polygon2RTree(), te::mnt::ReadSamples(), te::qt::widgets::Grid::redraw(), te::edit::Rotate(), te::gm::Rotate(), te::attributefill::VectorToRaster::run(), te::mnt::Profile::runTINProfile(), te::qt::widgets::MixtureModelWizardPage::saveMixtureModelComponents(), te::gm::SnapLineToPoints(), GAP::step3(), te::qt::widgets::TrajectoryItem::transformToDisplayProjection(), and te::qt::widgets::ImageItem::tryDoReprojectionUsingAffineTransform().
|
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 240 of file geometry/Geometry.h.
References _NOEXCEPT_OP.
Referenced by te::gm::CurvePolygon::add(), te::gm::GeometryCollection::add(), te::gm::AddIntersectionPoints(), te::qt::widgets::AnimationItem::adjustDataToAnimationTemporalExtent(), te::gm::AdjustSegment(), te::edit::SubtractAreaTool::buildPolygon(), te::edit::AggregateAreaTool::buildPolygon(), te::edit::DeleteGeometryByAreaTool::buildPolygon(), te::sa::CalculateDistance(), CalculateHorizontalLines(), CalculateVerticalLines(), te::gm::CascadedPolygonUnion(), te::ado::Convert2Ado(), te::gpkg::Convert2OGR(), te::ogr::Convert2OGR(), te::edit::Renderer::draw(), te::qt::widgets::ClippingWizardPage::drawGeom(), te::qt::widgets::MixtureModelWizardPage::drawMarks(), te::qt::widgets::ROIManagerWidget::drawROISet(), te::edit::Renderer::drawVertexes(), te::edit::FindSegment(), te::gm::FixGeometryTopology::fixSelfIntersection(), Geometry_GetSRID(), te::gm::GetAsMultiLineStringVector(), te::qt::widgets::ClassifierWizardPage::getEDSamples(), te::edit::Repository::getFeature(), te::vp::GetGeometryUnion(), te::gm::GetIntersectionLine(), te::gm::GetIntersectionPointsByOperators(), te::attributefill::VectorToVectorMemory::getKDtree(), te::qt::widgets::ClippingWizardPage::getLayerClippingAttribute(), te::qt::widgets::ClassifierWizardPage::getMAPSamples(), te::attributefill::VectorToVectorMemory::getMinimumDistanceFromCentroid(), te::da::SpatialQueryProcessor::getOIDSet(), te::vp::LineToPolygonMemory::getPolygons(), te::qt::widgets::ClassifierWizardPage::getSAMSamples(), te::rst::PolygonIterator< T >::getScanLineIntersectionRanges(), te::rst::PolygonIterator< T >::initialize(), te::vp::LineToPolygonMemory::line2Polygon(), te::rst::LineIterator< T >::LineIterator(), te::graph::BoxLoaderStrategy::loadDataByEdgeId(), te::graph::BoxLoaderStrategy::loadDataByVertexId(), LoadIsolines(), GAP::LoadPolygons(), te::gm::Multi2Single(), te::gm::MultiLineToDefinedType(), te::gm::PerpendicularDistance(), te::edit::VertexTool::pickFeature(), te::mnt::SplineInterpolationGrass::pointListSimplify(), te::mnt::pointListSimplify(), te::vp::PolygonToLineMemory::polygon2Line(), GAP::Polygon2Lines(), GAP::Polygon2RTree(), te::gm::Polygonizer(), te::gm::PrepareGeometriesToIntersection(), te::gm::CurvePolygon::push_back(), te::mnt::TINGeneration::ReadBreakLines(), te::mnt::ReadSamples(), RetrieveUsingSpatialFilter(), te::vp::Union::setGeomAsMulti(), te::vp::Difference::setGeomAsMulti(), te::vp::SetGeomAsMulti(), te::gm::GeometryCollection::setGeometryN(), te::gm::CurvePolygon::setRingN(), te::vp::MultipartToSinglepart::single2multi(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), TsGeometry::tcCreatePolygon(), TsGeometry::tcMisc(), te::gm::CircularString::transform(), te::gm::LineString::transform(), te::gm::UnaryUnion(), te::gm::Validate(), and te::pgis::EWKBWriter::visit().
|
virtualinherited |
The length of this Curve in its associated spatial reference.
It returns the curve start point.
Implements te::gm::Curve.
Definition at line 243 of file geometry/LineString.cpp.
References te::gm::LineString::getPointN(), and te::gm::LineString::size().
Referenced by te::gm::AddIntersectionPoints(), te::mnt::CreateIsolines::connectLines(), te::gm::GetIntersectionPointsByOperators(), te::gm::GetIntersectionPointsByPerpendicularDistance(), 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.
Definition at line 1065 of file geometry/Geometry.cpp.
References te::dt::GEOMETRY_TYPE.
|
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. |
Definition at line 139 of file geometry/Geometry.cpp.
References te::gm::WKBWriter::write().
Referenced by te::gm::Geometry::asBinary(), te::ado::Convert2Ado(), te::gpkg::Convert2OGR(), te::ogr::Convert2OGR(), Geometry_GetHWkb(), Geometry_GetWkb(), TsWKBReader::tcCreateGeometriesAndApplyReadTests(), TsGEOSWriterReader::tcCreateGeometriesAndApplyReadTests(), TsWKBReader::tcCreateGeomFromWKTAndApplyReadTests(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), and TsGeometry::tcCreatePointZM().
|
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.
Definition at line 134 of file geometry/Geometry.cpp.
References te::gm::WKBSize::size().
Referenced by te::pgis::PreparedQuery::bind(), te::ado::Convert2Ado(), te::gpkg::Convert2OGR(), te::ogr::Convert2OGR(), te::pgis::Convert2PostGIS(), Geometry_GetHWkb(), Geometry_GetWkb(), Geometry_GetWkbSize(), TsWKBReader::tcCreateGeometriesAndApplyReadTests(), TsGEOSWriterReader::tcCreateGeometriesAndApplyReadTests(), TsWKBReader::tcCreateGeomFromWKTAndApplyReadTests(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), and wkbConversionExamples().
|
inherited |
It returns the n-th x coordinate value.
| i | The n-th coordinate. |
Definition at line 401 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::LineString::size(), and te::gm::Coord2D::x.
Referenced by te::gm::AddIntersectionPoints(), BOOST_AUTO_TEST_CASE(), te::mnt::Profile::calculateProfile(), ConvertToMillimeter(), te::gm::CreatePolygon(), te::mnt::DouglasPeuckerTA(), te::rp::Register::execute(), te::rp::TiePointsMosaic::execute(), te::rp::SequenceMosaic::execute(), te::edit::FindSegment(), te::edit::GetCoordinates(), te::gm::GetIntersectionPointsByOperators(), te::vp::LineToPolygonMemory::getPolygons(), te::rst::PolygonIterator< T >::getScanLineIntersectionRanges(), LineString_GetX(), LoadIsolines(), te::edit::MoveGeometry(), te::gm::PrepareGeometriesToIntersection(), te::mnt::TINGeneration::ReadBreakLines(), te::mnt::ReadSamples(), RemapToPlanar(), te::edit::RemoveVertex(), te::mnt::Profile::runRasterProfile(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), te::edit::VertexTool::updateRTree(), te::rst::TileIndexer::within(), and te::rst::TileIndexer::withinOrTouches().
|
inherited |
It returns the n-th y coordinate value.
| i | The n-th coordinate. |
Definition at line 407 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::LineString::size(), and te::gm::Coord2D::y.
Referenced by te::gm::AddIntersectionPoints(), BOOST_AUTO_TEST_CASE(), te::mnt::Profile::calculateProfile(), ConvertToMillimeter(), te::gm::CreatePolygon(), te::mnt::DouglasPeuckerTA(), te::rp::Register::execute(), te::rp::TiePointsMosaic::execute(), te::rp::SequenceMosaic::execute(), te::edit::FindSegment(), te::edit::GetCoordinates(), te::gm::GetIntersectionPointsByOperators(), te::vp::LineToPolygonMemory::getPolygons(), te::rst::PolygonIterator< T >::getScanLineIntersectionRanges(), LineString_GetY(), LoadIsolines(), te::edit::MoveGeometry(), te::gm::PrepareGeometriesToIntersection(), te::mnt::TINGeneration::ReadBreakLines(), te::mnt::ReadSamples(), RemapToPlanar(), te::edit::RemoveVertex(), te::mnt::Profile::runRasterProfile(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), te::edit::VertexTool::updateRTree(), te::rst::TileIndexer::within(), and te::rst::TileIndexer::withinOrTouches().
|
inherited |
It returns the n-th z coordinate value.
| i | The n-th coordinate. |
Definition at line 413 of file geometry/LineString.cpp.
References te::gm::LineString::m_nPts, and te::gm::LineString::m_zA.
Referenced by te::mnt::Smooth::AdjustCatmullRom(), te::mnt::SplineInterpolationGrass::AdjustLinear(), te::mnt::Profile::calculateProfile(), te::gm::WKBReader::getLinearRing(), te::gm::WKBReader::getLineString(), te::mnt::CreateIsolinesDialog::getMinMax(), LineString_GetZ(), LineString_GetZCoords(), te::mnt::Tin::LoadTinQGIS(), te::mnt::ReadSamples(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), te::sqlite::EWKBSize::visit(), te::gm::WKBSize::visit(), te::gm::WKTWriter::visit(), Write2EWKB(), and te::gm::Write2WKB().
|
inlineinherited |
It returns a pointer to the internal array of z-values.
Definition at line 470 of file LineString.h.
Definition at line 87 of file Line.cpp.
References te::gm::LineString::m_coords, te::gm::Point::setX(), te::gm::Point::setY(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::mnt::Profile::calculateProfile(), and GAP::verify_polygon().
|
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. |
Definition at line 681 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by CalculateHorizontalLines(), CalculateVerticalLines(), te::vp::Intersection::executeMemory(), Geometry_Intersection(), intersection(), and te::rst::LineIterator< T >::LineIterator().
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. |
Definition at line 335 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by te::edit::SubtractAreaTool::buildPolygon(), te::edit::AggregateAreaTool::buildPolygon(), te::vp::BufferMemory::dissolveMemory(), te::vp::BufferQuery::dissolveQuery(), te::rp::ClassifierDummyStrategy::execute(), Geometry_Intersects(), te::attributefill::VectorToVectorMemory::getMinimumDistanceFromCentroid(), te::st::Trajectory::getPatches(), te::edit::VertexTool::mouseMoveEvent(), te::qt::widgets::ClippingWizardPage::onGeomAquired(), te::qt::widgets::ROIManagerWidget::onGeomAquired(), te::gm::SatisfySpatialRelation(), spatialRelation(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), and TsGeometry::tcCreatePolygon().
|
inherited |
It returns true if this geometric object has z coordinate values.
Definition at line 198 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_gType.
Referenced by Geometry_Is3D(), te::mnt::ReadSamples(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), and TsGeometry::tcCreatePolygon().
|
virtualinherited |
It returns true if the curve is closed (startPoint = endPoint).
Implements te::gm::Curve.
Definition at line 255 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::LineString::m_nPts, and te::gm::LineString::size().
Referenced by te::vp::LineToPolygonMemory::getPolygons(), te::edit::IsSpecialRingVertex(), and GAP::step00().
|
inherited |
It returns true if this geometric object is a collection.
Definition at line 220 of file geometry/Geometry.cpp.
References te::gm::GeometryCollectionType, te::gm::Geometry::get2DGeomTypeId(), te::gm::MultiLineStringType, te::gm::MultiPointType, te::gm::MultiPolygonType, and te::gm::MultiSurfaceType.
|
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. |
Definition at line 144 of file geometry/Geometry.cpp.
References TE_TR, and te::gm::GEOSWriter::write().
Referenced by te::vp::Intersection::executeMemory(), Geometry_IsEmpty(), te::gm::MultiLineToDefinedType(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), and TsGeometry::tcCreatePolygon().
|
staticinherited |
It tells if the given string is a geometry data type.
| stype | The geometry type to be checked. |
Definition at line 1009 of file geometry/Geometry.cpp.
References te::gm::Geometry::getGeomTypeId(), and te::gm::UnknownGeometryType.
Referenced by te::sqlite::Convert2TerraLib(), and Geometry_IsGeomType().
|
inherited |
It returns true if this geometric object has m coordinate values.
Definition at line 209 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_gType.
Referenced by Geometry_IsMeasured(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), and TsGeometry::tcCreatePolygon().
|
inherited |
It returns true if the curve is closed and simple.
Definition at line 69 of file geometry/Curve.cpp.
References te::gm::Curve::isClosed(), and te::gm::Geometry::isSimple().
|
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. |
Definition at line 162 of file geometry/Geometry.cpp.
References TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_IsSimple(), te::gm::Curve::isRing(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), and TsGeometry::tcCreatePolygon().
|
virtualinherited |
It tells if the geometry is well formed.
| std::exception | It will throw an exception if the operation could not be performed. |
Definition at line 180 of file geometry/Geometry.cpp.
References TE_TR, and te::gm::GEOSWriter::write().
Referenced by te::attributefill::VectorToVectorMemory::checkGeometries(), te::vp::BufferMemory::dissolveMemory(), te::vp::BufferQuery::dissolveQuery(), te::qt::widgets::FilterDialogForm::drawGeom(), te::qt::widgets::ColorTransformDialog::drawGeom(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::vp::Intersection::executeMemory(), Geometry_IsValid(), te::attributefill::VectorToVectorMemory::getIntersections(), te::qt::widgets::ClippingWizardPage::getLayerClippingAttribute(), te::rp::Blender::initialize(), te::edit::VertexTool::mouseReleaseEvent(), te::qt::widgets::FilterDialogForm::onEnvelopeAcquired(), te::qt::widgets::ROIManagerWidget::onEnvelopeAcquired(), te::qt::widgets::ClippingWizardPage::onGeomAquired(), te::qt::widgets::ROIManagerWidget::onGeomAquired(), te::qt::widgets::MixtureModelWizardPage::onGeomAquired(), te::qt::widgets::ColorTransformDialog::onNewROIPushButtonClicked(), te::vp::BufferMemory::setBuffer(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), TsNoAreaRings::tcCreatePolygon(), and TsGeometry::tcCreatePolygon().
|
staticinherited |
It loads the internal MAP of geometry type names to geometry type ids.
Definition at line 1014 of file geometry/Geometry.cpp.
References te::gm::GeometryCollectionMType, te::gm::GeometryCollectionType, te::gm::GeometryCollectionZMType, te::gm::GeometryCollectionZType, te::gm::GeometryMType, te::gm::GeometryType, te::gm::GeometryZMType, te::gm::GeometryZType, te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiLineStringZMType, te::gm::MultiLineStringZType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, te::gm::MultiSurfaceMType, te::gm::MultiSurfaceType, te::gm::MultiSurfaceZMType, te::gm::MultiSurfaceZType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, te::gm::PointZType, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, te::gm::PolygonZType, and te::gm::Geometry::sm_geomTypeMap.
Referenced by te::gm::Module::initialize().
|
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 678 of file geometry/Geometry.h.
References _NOEXCEPT_OP, difference(), intersection(), and Union().
|
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.
Definition at line 233 of file geometry/LineString.cpp.
|
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.
Definition at line 306 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::LineString::m_mA, te::gm::LineString::m_nPts, and te::gm::LineString::m_zA.
Referenced by te::mnt::Smooth::AdjustCatmullRom(), te::mnt::CreateIsolines::connectLines(), te::rst::Vectorizer::detectEdge(), LineString_MakeEmpty(), te::gm::LineString::operator=(), and RemapToPlanar().
|
default |
Assignment operator.
| rhs | The other geometry. |
Referenced by Line().
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. |
Definition at line 461 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_Overlaps(), te::gm::SatisfySpatialRelation(), and spatialRelation().
|
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. |
Definition at line 486 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_Relate().
|
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. |
Definition at line 514 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
| 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 |
Definition at line 114 of file Line.cpp.
References te::gm::LineString::m_coords, te::gm::Geometry::m_gType, te::gm::LineString::m_mA, te::gm::LineString::m_zA, te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::mnt::Profile::calculateProfile(), te::gm::GetIntersectionLine(), and GAP::verify_polygon().
|
inherited |
It sets the n-th m measure value.
| i | The coordinate index. |
| m | The m value. |
Definition at line 444 of file geometry/LineString.cpp.
References te::gm::LineString::m_mA, and te::gm::LineString::m_nPts.
Referenced by LineString_SetM(), TsGeometry::tcCreateLineStringM(), and TsGeometry::tcCreateLineStringZM().
|
inherited |
It reserves room for the number of coordinates in this LineString.
| size | The number of coordinates reserved for the LineString. |
Definition at line 261 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::Geometry::m_gType, te::gm::LineString::m_mA, te::gm::LineString::m_nPts, te::gm::LineString::m_zA, and te::gm::LineString::size().
Referenced by te::mnt::Smooth::AdjustCatmullRom(), te::mnt::SplineInterpolationGrass::AdjustLinear(), te::mnt::Profile::calculateProfile(), te::gm::FixGeometryTopology::closeGeometryRing(), te::mnt::CreateIsolines::connectLines(), te::rst::Vectorizer::detectEdge(), te::rst::PolygonIterator< T >::getBBOXIntersectionRanges(), te::mnt::CreateIsolines::interpolacao(), LineString_SetNumCoordinates(), RemapToPlanar(), and te::mnt::Profile::runRasterProfile().
|
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. |
Definition at line 369 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::LineString::size(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::gm::AddIntersectionPoints(), te::edit::AddVertex(), te::rp::FeederConstRasterDirectory::applyGeometryRestriction(), BOOST_AUTO_TEST_CASE(), te::qt::widgets::SymbologyPreview::build(), te::edit::CreateLineTool::buildLine(), te::edit::CreatePolygonTool::buildLine(), te::edit::SubtractAreaTool::buildPolygon(), te::edit::AggregateAreaTool::buildPolygon(), te::edit::DeleteGeometryByAreaTool::buildPolygon(), te::edit::CreatePolygonTool::buildPolygon(), CalculateHorizontalLines(), te::mnt::Profile::calculateProfile(), CalculateVerticalLines(), ConvertToMillimeter(), TsManagerDataSource::ConvertVectorToLinearRing(), te::gm::CreateLine(), createLineString(), createPolygon(), te::gm::CreatePolygon(), CreatePolygons(), createRotatedSquare(), createSquare(), te::rst::Vectorizer::detectEdge(), te::graph::LayerRenderer::drawDataSourceGraph(), DrawingGeometricObjects(), te::qt::widgets::PolygonAcquire::drawLine(), te::qt::widgets::Measure::drawLine(), te::graph::LayerRenderer::drawMemoryGraph(), te::qt::widgets::PolygonAcquire::drawPolygon(), te::qt::widgets::Measure::drawPolygon(), te::rp::TiePointsMosaic::execute(), te::rp::SequenceMosaic::execute(), ExemplifyPolygonIterator(), te::qt::widgets::ImageItem::generateRoute(), GEOS_DouglasPeucker(), GetGeometry(), te::gm::GetGeomFromEnvelope(), te::rp::GetIndexedDetailedExtent(), te::vp::LineToPolygonMemory::getPolygons(), GetRuleGeometry(), te::ag::Canvas::getTextBoundary(), te::rp::Blender::initialize(), LineString_SetPoint(), te::qt::widgets::PolygonAcquire::mouseDoubleClickEvent(), te::mnt::ProfileTools::mouseReleaseEvent(), te::edit::MoveGeometry(), te::edit::MoveVertex(), te::gm::PrepareGeometriesToIntersection(), te::mnt::TINGeneration::ReadBreakLines(), RemapToPlanar(), te::edit::RemoveVertex(), RetrieveUsingSpatialFilter(), te::edit::Rotate(), te::gm::Rotate(), te::mnt::Profile::runRasterProfile(), TsArray::tcArray(), TsGeometry::tcCreateLineString(), TsNoAreaRings::tcCreatePolygon(), TsCanvas::tcPerformance(), TsCanvas::tcTransformation(), Texture(), te::qt::widgets::TrajectoryItem::transformToDisplayProjection(), and te::qt::widgets::ImageItem::tryDoReprojectionUsingAffineTransform().
|
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. |
Definition at line 384 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::LineString::m_mA, te::gm::LineString::m_nPts, te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by LineString_SetPointM(), and TsGeometry::tcCreateLineStringM().
|
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. |
Definition at line 355 of file geometry/LineString.cpp.
References te::gm::Point::getM(), te::gm::Point::getX(), te::gm::Point::getY(), te::gm::Point::getZ(), te::gm::LineString::m_coords, te::gm::LineString::m_mA, te::gm::LineString::m_nPts, te::gm::LineString::m_zA, te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::gm::AddIntersectionPoints(), te::mnt::SplineInterpolationGrass::AdjustLinear(), te::gm::WKTActions::buildLine(), te::gm::FixGeometryTopology::closeGeometryRing(), te::mnt::DouglasPeuckerTA(), GetGeographicCoordLine(), LineString_SetPointN(), te::qt::widgets::MixtureModelWizardPage::loadMixtureModelComponents(), te::gm::SnapLineToPoints(), GAP::step0(), GAP::step00(), GAP::step1(), GAP::step2(), GAP::step3(), and GAP::step4().
|
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. |
Definition at line 376 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::LineString::m_nPts, te::gm::LineString::m_zA, te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::mnt::Smooth::AdjustCatmullRom(), te::mnt::CreateIsolines::connectLines(), te::mnt::GEOS_DouglasPeucker(), te::mnt::CreateIsolines::interpolacao(), LineString_SetPointZ(), LoadIsolines(), te::mnt::SplineInterpolationGrass::pointListSimplify(), te::mnt::ReadSamples(), te::mnt::Profile::runTINProfile(), and TsGeometry::tcCreateLineStringZ().
|
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. |
Definition at line 392 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::LineString::m_mA, te::gm::LineString::m_nPts, te::gm::LineString::m_zA, te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by LineString_SetPointZM(), and TsGeometry::tcCreateLineStringZM().
|
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.
Definition at line 172 of file geometry/LineString.cpp.
References te::gm::Geometry::m_srid.
Referenced by te::rp::FeederConstRasterDirectory::applyGeometryRestriction(), BOOST_AUTO_TEST_CASE(), te::edit::CreateLineTool::buildLine(), ConvertToMillimeter(), TsManagerDataSource::ConvertVectorToLinearRing(), te::rst::Vectorizer::detectEdge(), te::rp::TiePointsMosaic::execute(), te::rp::SequenceMosaic::execute(), te::pgis::EWKBReader::getLinearRing(), LoadIsolines(), te::mnt::TINGeneration::ReadBreakLines(), te::mnt::ReadSamples(), RemapToPlanar(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), and TsGeometry::tcCreateLineStringZM().
|
inherited |
It sets the n-th x coordinate value.
| i | The coordinate index. |
| x | The x value. |
Definition at line 426 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::LineString::size(), and te::gm::Coord2D::x.
Referenced by te::qt::widgets::MixtureModelWizardPage::addGeometryComponent(), te::rst::PolygonIterator< T >::getScanLineIntersectionRanges(), LineString_SetX(), te::mnt::TINGeneration::neigh_union(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), and TsGeometry::tcCreateLineStringZM().
|
inherited |
It sets the n-th y coordinate value.
| i | The coordinate index. |
| y | The y value. |
Definition at line 432 of file geometry/LineString.cpp.
References te::gm::LineString::m_coords, te::gm::LineString::size(), and te::gm::Coord2D::y.
Referenced by te::qt::widgets::MixtureModelWizardPage::addGeometryComponent(), LineString_SetY(), te::mnt::TINGeneration::neigh_union(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), and TsGeometry::tcCreateLineStringZM().
|
inherited |
It sets the n-th z coordinate value.
| i | The coordinate index. |
| z | The z value. |
Definition at line 438 of file geometry/LineString.cpp.
References te::gm::LineString::m_nPts, and te::gm::LineString::m_zA.
Referenced by te::mnt::DouglasPeuckerTA(), LineString_SetZ(), te::mnt::TINGeneration::neigh_union(), TsGeometry::tcCreateLineStringZ(), and TsGeometry::tcCreateLineStringZM().
|
inlineinherited |
It returns the number of points (vertexes) in the geometry.
Definition at line 262 of file LineString.h.
References p.
Referenced by BOOST_AUTO_TEST_CASE(), te::mnt::Profile::calculateProfile(), te::gm::LineString::computeMBR(), te::mnt::CreateIsolines::connectLines(), te::gm::CreatePolygon(), te::mnt::DouglasPeuckerTA(), te::rp::Register::execute(), te::rp::TiePointsMosaic::execute(), te::rp::SequenceMosaic::execute(), te::mnt::GEOS_DouglasPeucker(), GEOS_DouglasPeucker(), te::gm::LineString::getEndPoint(), te::rp::Blender::getSegments(), te::gm::LineString::getStartPoint(), te::gm::LineString::getX(), te::gm::LineString::getY(), TsManagerDataSource::initialize(), te::mnt::CreateIsolines::interpolacao(), te::gm::LineString::isClosed(), LoadIsolines(), te::gm::PrepareGeometriesToIntersection(), te::mnt::TINGeneration::ReadBreakLines(), te::mnt::ReadSamples(), te::edit::RemoveVertex(), te::gm::Rotate(), te::mnt::Profile::runRasterProfile(), te::gm::LineString::setNumCoordinates(), te::gm::LineString::setPoint(), te::gm::LineString::setX(), te::gm::LineString::setY(), GAP::step00(), GAP::step3(), te::gm::LineString::transform(), te::gm::WKBSize::visit(), te::gm::WKBWriter::visit(), and te::gm::WKTWriter::visit().
|
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. |
Definition at line 768 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_SymDifference(), and te::gm::Validate().
|
inlinevirtualinherited |
It returns the data value in a WKT representation.
Implements te::dt::AbstractData.
Definition at line 936 of file geometry/Geometry.h.
Referenced by PrintCoverageSeriesInfo(), PrintTimeSeriesInfo(), PrintTrajectory(), PrintTrajectoryPatch(), and VectorizeRaster().
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. |
Definition at line 361 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by Geometry_Touches(), te::gm::SatisfySpatialRelation(), spatialRelation(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsGeometry::tcCreatePoint(), TsGeometry::tcCreatePointM(), TsGeometry::tcCreatePointZ(), TsGeometry::tcCreatePointZM(), and TsGeometry::tcCreatePolygon().
|
virtualinherited | ||||||||||||||
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.
| srid | The new Spatial Reference System ID used to transform the coordinates of the linestring. |
| Exception | It will throw an exception if it can not do the transformation. |
Implements te::gm::Geometry.
Definition at line 177 of file geometry/LineString.cpp.
References te::gm::LineString::computeMBR(), te::gm::Geometry::getSRID(), te::gm::LineString::m_coords, te::gm::Geometry::m_mbr, te::gm::Geometry::m_srid, te::gm::LineString::size(), and TE_TR.
Referenced by te::edit::Renderer::drawVertexes(), GetGeographicCoordLine(), te::qt::widgets::TrajectoryItem::transformToDisplayProjection(), and te::qt::widgets::ImageItem::tryDoReprojectionUsingAffineTransform().
|
virtualinherited |
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. |
Definition at line 710 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by te::gm::AddLineString(), te::edit::AggregateAreaTool::buildPolygon(), te::vp::BufferMemory::dissolveMemory(), te::vp::BufferQuery::dissolveQuery(), te::edit::MergeGeometriesTool::editingFinished(), te::rp::SequenceMosaic::execute(), Geometry_Union(), te::vp::GetGeometryUnion(), te::addressgeocoding::AddressGeocodingOp::getLineString(), te::mnt::TINGeneration::neigh_union(), and Union().
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. |
Definition at line 411 of file geometry/Geometry.cpp.
References te::gm::Geometry::m_srid, TE_TR, and te::gm::GEOSWriter::write().
Referenced by te::graph::LayerRenderer::drawMemoryGraph(), Geometry_Within(), te::sa::SamplePointsGeneratorStratified::getPointInGeometry(), te::gm::SatisfySpatialRelation(), and spatialRelation().
|
protectedinherited |
A pointer to x, y values.
Definition at line 493 of file LineString.h.
Referenced by Angle(), te::gm::LineString::computeMBR(), distance(), te::gm::LineString::getPointN(), te::gm::LineString::getX(), te::gm::LineString::getY(), intersection(), te::gm::LineString::isClosed(), Line(), te::gm::LineString::LineString(), te::gm::LineString::makeEmpty(), te::gm::LineString::operator=(), setCoord(), te::gm::LineString::setNumCoordinates(), te::gm::LineString::setPoint(), te::gm::LineString::setPointM(), te::gm::LineString::setPointN(), te::gm::LineString::setPointZ(), te::gm::LineString::setPointZM(), te::gm::LineString::setX(), te::gm::LineString::setY(), te::gm::LineString::transform(), and te::gm::LineString::~LineString().
|
protectedinherited |
Internal geometry type.
Definition at line 942 of file geometry/Geometry.h.
Referenced by te::gm::CircularString::CircularString(), te::gm::Geometry::get2DGeometryType(), te::gm::Geometry::get2DGeomTypeId(), te::gm::Geometry::getCoordinateDimension(), te::gm::CircularString::getPointN(), te::gm::LineString::getPointN(), te::gm::Geometry::is3D(), te::gm::Geometry::isMeasured(), te::gm::LineString::LineString(), te::gm::Geometry::operator=(), setCoord(), te::gm::CircularString::setNumCoordinates(), te::gm::LineString::setNumCoordinates(), and te::gm::CircularString::setPointN().
|
protectedinherited |
A pointer to m values.
Definition at line 495 of file LineString.h.
Referenced by te::gm::LineString::getM(), te::gm::LineString::getPointN(), Line(), te::gm::LineString::LineString(), te::gm::LineString::makeEmpty(), te::gm::LineString::operator=(), setCoord(), te::gm::LineString::setM(), te::gm::LineString::setNumCoordinates(), te::gm::LineString::setPointM(), te::gm::LineString::setPointN(), te::gm::LineString::setPointZM(), and te::gm::LineString::~LineString().
|
mutableprotectedinherited |
The geometry minimum bounding rectangle.
Definition at line 944 of file geometry/Geometry.h.
Referenced by te::gm::CompoundCurve::computeMBR(), te::gm::GeometryCollection::computeMBR(), te::gm::CircularString::computeMBR(), te::gm::LineString::computeMBR(), te::gm::Point::computeMBR(), te::gm::PolyhedralSurface::computeMBR(), te::gm::CurvePolygon::computeMBR(), te::gm::Geometry::getMBR(), te::gm::Geometry::operator=(), te::gm::CompoundCurve::transform(), te::gm::GeometryCollection::transform(), te::gm::CircularString::transform(), te::gm::LineString::transform(), te::gm::Point::transform(), te::gm::PolyhedralSurface::transform(), te::gm::CurvePolygon::transform(), and te::gm::Geometry::~Geometry().
|
protectedinherited |
The number of coordinates of the LineString.
Definition at line 496 of file LineString.h.
Referenced by te::gm::LineString::getEndPoint(), te::gm::LineString::getM(), te::gm::LineString::getPointN(), te::gm::LineString::getZ(), te::gm::LineString::isClosed(), te::gm::LineString::LineString(), te::gm::LineString::makeEmpty(), te::gm::LineString::operator=(), te::gm::LineString::setM(), te::gm::LineString::setNumCoordinates(), te::gm::LineString::setPointM(), te::gm::LineString::setPointN(), te::gm::LineString::setPointZ(), te::gm::LineString::setPointZM(), and te::gm::LineString::setZ().
|
protectedinherited |
The Spatial Reference System code associated to the Geometry.
Definition at line 943 of file geometry/Geometry.h.
Referenced by te::gm::Geometry::buffer(), te::gm::Geometry::contains(), te::gm::Geometry::convexHull(), te::gm::Geometry::coveredBy(), te::gm::Geometry::covers(), te::gm::Geometry::crosses(), te::gm::Geometry::difference(), te::gm::Geometry::disjoint(), te::gm::Geometry::distance(), te::gm::Geometry::dWithin(), te::gm::Geometry::equals(), te::gm::MultiPolygon::getCentroid(), te::gm::CurvePolygon::getCentroid(), te::gm::Geometry::getEnvelope(), te::gm::CircularString::getPointN(), te::gm::LineString::getPointN(), te::gm::Geometry::intersection(), te::gm::Geometry::intersects(), te::gm::Geometry::operator=(), te::gm::Geometry::overlaps(), te::gm::Geometry::relate(), te::gm::CompoundCurve::setSRID(), te::gm::GeometryCollection::setSRID(), te::gm::CircularString::setSRID(), te::gm::LineString::setSRID(), te::gm::Point::setSRID(), te::gm::PolyhedralSurface::setSRID(), te::gm::CurvePolygon::setSRID(), te::gm::Geometry::symDifference(), te::gm::Geometry::touches(), te::gm::CompoundCurve::transform(), te::gm::GeometryCollection::transform(), te::gm::CircularString::transform(), te::gm::LineString::transform(), te::gm::Point::transform(), te::gm::PolyhedralSurface::transform(), te::gm::CurvePolygon::transform(), te::gm::Geometry::Union(), and te::gm::Geometry::within().
|
protectedinherited |
A pointer to z values.
Definition at line 494 of file LineString.h.
Referenced by te::gm::LineString::getPointN(), te::gm::LineString::getZ(), Line(), te::gm::LineString::LineString(), te::gm::LineString::makeEmpty(), te::gm::LineString::operator=(), setCoord(), te::gm::LineString::setNumCoordinates(), te::gm::LineString::setPointN(), te::gm::LineString::setPointZ(), te::gm::LineString::setPointZM(), te::gm::LineString::setZ(), and te::gm::LineString::~LineString().
|
staticprotectedinherited |
A set of geometry type names (in UPPER CASE).
Definition at line 946 of file geometry/Geometry.h.
Referenced by te::gm::Geometry::getGeomTypeId(), te::gm::Geometry::getGeomTypeString(), and te::gm::Geometry::loadGeomTypeId().