21 #ifndef GEOS_GEOS_LINESTRING_H 22 #define GEOS_GEOS_LINESTRING_H 24 #include <geos/export.h> 25 #include <geos/platform.h> 26 #include <geos/geom/Geometry.h> 27 #include <geos/geom/Lineal.h> 28 #include <geos/geom/CoordinateSequence.h> 29 #include <geos/geom/Envelope.h> 30 #include <geos/geom/Dimension.h> 36 #include <geos/inline.h> 40 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 46 class CoordinateArraySequence;
47 class CoordinateSequenceFilter;
95 virtual const Coordinate& getCoordinateN(
int n)
const;
105 virtual int getBoundaryDimension()
const;
108 virtual int getCoordinateDimension()
const;
115 virtual Geometry* getBoundary()
const;
117 virtual bool isEmpty()
const;
119 virtual std::size_t getNumPoints()
const;
121 virtual Point* getPointN(std::size_t n)
const;
127 virtual Point* getStartPoint()
const;
133 virtual Point* getEndPoint()
const;
135 virtual bool isClosed()
const;
137 virtual bool isRing()
const;
139 virtual std::string getGeometryType()
const;
143 virtual bool isCoordinate(
Coordinate& pt)
const;
145 virtual bool equalsExact(
const Geometry *other,
double tolerance=0)
171 virtual void normalize();
174 virtual int compareToSameClass(
const Geometry *ls)
const;
176 virtual const Coordinate* getCoordinate()
const;
178 virtual double getLength()
const;
201 Envelope::AutoPtr computeEnvelopeInternal()
const;
203 CoordinateSequence::AutoPtr points;
207 void validateConstruction();
211 struct GEOS_DLL LineStringLT {
213 return ls1->compareTo(ls2)<0;
230 #endif // ndef GEOS_GEOS_LINESTRING_H Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:48
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Definition: CoordinateSequenceFilter.h:58
GeometryTypeId
Geometry types.
Definition: Geometry.h:65
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
Definition: CoordinateFilter.h:43
Definition: LineString.h:70
std::vector< const LineString * > ConstVect
A vector of const LineString pointers.
Definition: LineString.h:77
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:67
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
virtual Geometry * clone() const
Creates and returns a full copy of this LineString object (including all coordinates contained by it)...
Definition: LineString.h:219
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59
DimensionType
Definition: Dimension.h:31
Definition: GeometryComponentFilter.h:43