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;
94 virtual const Coordinate& getCoordinateN(
int n)
const;
104 virtual int getBoundaryDimension()
const;
107 virtual int getCoordinateDimension()
const;
114 virtual Geometry* getBoundary()
const;
116 virtual bool isEmpty()
const;
118 virtual std::size_t getNumPoints()
const;
120 virtual Point* getPointN(std::size_t n)
const;
126 virtual Point* getStartPoint()
const;
132 virtual Point* getEndPoint()
const;
134 virtual bool isClosed()
const;
136 virtual bool isRing()
const;
138 virtual std::string getGeometryType()
const;
142 virtual bool isCoordinate(
Coordinate& pt)
const;
144 virtual bool equalsExact(
const Geometry *other,
double tolerance=0)
170 virtual void normalize();
173 virtual int compareToSameClass(
const Geometry *ls)
const;
175 virtual const Coordinate* getCoordinate()
const;
177 virtual double getLength()
const;
200 Envelope::AutoPtr computeEnvelopeInternal()
const;
202 CoordinateSequence::AutoPtr points;
206 void validateConstruction();
210 struct GEOS_DLL LineStringLT {
212 return ls1->compareTo(ls2)<0;
229 #endif // ndef GEOS_GEOS_LINESTRING_H