LinearRing
.
More...
#include <LinearRing.h>
Inheritance diagram for geos::geom::LinearRing:
Public Member Functions | |
LinearRing (const LinearRing &lr) | |
LinearRing (CoordinateSequence *points, const GeometryFactory *newFactory) | |
Constructs a LinearRing with the given points. | |
LinearRing (CoordinateSequence::AutoPtr points, const GeometryFactory *newFactory) | |
Hopefully cleaner version of the above. | |
virtual Geometry * | clone () const |
int | getBoundaryDimension () const |
Returns Dimension.FALSE , since by definition LinearRings do not have a boundary. | |
bool | isSimple () const |
Returns true , since by definition LinearRings are always simple. | |
bool | isClosed () const |
std::string | getGeometryType () const |
Return a string representation of this Geometry type. | |
virtual GeometryTypeId | getGeometryTypeId () const |
Return an integer representation of this Geometry type. | |
void | setPoints (CoordinateSequence *cl) |
Geometry * | reverse () const |
Static Public Attributes | |
const unsigned int | MINIMUM_VALID_SIZE = 4 |
LinearRing
.
A LinearRing is a LineString which is both closed and simple. In other words, the first and last coordinate in the ring must be equal, and the interior of the ring must not self-intersect. Either orientation of the ring is allowed.
A ring must have either 0 or 4 or more points. The first and last points must be equal (in 2D). If these conditions are not met, the constructors throw an IllegalArgumentException
|
Constructs a
|
|
Creates and returns a full copy of this LineString object. (including all coordinates contained by it).
Reimplemented from geos::geom::LineString. |
|
Returns
Reimplemented from geos::geom::LineString. |
|
Returns
Reimplemented from geos::geom::Geometry. |
|
Creates a LineString whose coordinates are in the reverse order of this objects
Reimplemented from geos::geom::LineString. |
|
The minimum number of vertices allowed in a valid non-empty ring (= 4). Empty rings with 0 vertices are also valid. |