26#ifndef __TERRALIB_GEOMETRY_INTERNAL_LINE_H
27#define __TERRALIB_GEOMETRY_INTERNAL_LINE_H
159 void setCoord(
int index,
double x,
double y,
double z = 0.,
double m = 0.);
#define TE_DEFINE_VISITABLE
LineString is a curve with linear interpolation between points.
A base class for values that can be retrieved from the data access module.
An Envelope defines a 2D rectangular region.
virtual double distance(const Geometry *const rhs) const _NOEXCEPT_OP(false)
It returns the shortest distance between any two points in the two geometry objects.
virtual Geometry * intersection(const Geometry *const rhs) const _NOEXCEPT_OP(false)
It returns a geometric object that represents the point set intersection with another geometry.
LineString(GeomType t, int srid=0, Envelope *mbr=0)
It initializes the linestring with the specified spatial reference system id and envelope.
void setCoord(int index, double x, double y, double z=0., double m=0.)
Line(GeomType t, int srid=0, Envelope *mbr=0)
It initializes the line with the specified spatial reference system id and envelope.
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.
double distance(te::gm::Point p)
Line(const Line &rhs)
Copy constructor.
te::dt::AbstractData * clone() const
It clones the line.
bool intersection(const Line &line, Point &coord) const
~Line()
Virtual destructor.
Line & operator=(const Line &rhs)
Assignment operator.
A point with x and y coordinate values.
Namespace for the Vector Geometry module of TerraLib.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.