20 #ifndef GEOS_GEOS_LINEARRING_H
21 #define GEOS_GEOS_LINEARRING_H
23 #include <geos/export.h>
26 #include <geos/platform.h>
27 #include <geos/geom/LineString.h>
29 #include <geos/inline.h>
35 class CoordinateArraySequence;
65 static const unsigned int MINIMUM_VALID_SIZE = 4;
110 bool isClosed()
const override;
122 void validateConstruction();
129 #endif // ndef GEOS_GEOS_LINEARRING_H
Geometry * reverse() const override
Models an OGC SFS LinearRing.
Definition: LinearRing.h:57
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
bool isSimple() const override
Returns true, since by definition LinearRings are always simple.
int getBoundaryDimension() const override
Returns Dimension.FALSE, since by definition LinearRings do not have a boundary.
Geometry * clone() const override
Make a deep-copy of this Geometry.
Definition: LinearRing.h:88
GeometryTypeId getGeometryTypeId() const override
Return an integer representation of this Geometry type.
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:177
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59
LinearRing(CoordinateSequence *points, const GeometryFactory *newFactory)
Constructs a LinearRing with the given points.
GeometryTypeId
Geometry types.
Definition: Geometry.h:75
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:67
std::string getGeometryType() const override
Return a string representation of this Geometry type.
Definition: LineString.h:70
LinearRing(CoordinateSequence::Ptr points, const GeometryFactory *newFactory)
Hopefully cleaner version of the above.