public interface LinearRing extends LineString
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
| Modifier and Type | Field and Description |
|---|---|
static int |
MINIMUM_VALID_SIZE
The minimum number of vertices allowed in a valid non-empty ring (= 4).
|
| Modifier and Type | Method and Description |
|---|---|
LinearRing |
clone()
Creates and returns a full copy of this
LineString object. |
LinearRing |
move(double... deltas) |
LinearRing |
moveVertex(Point newPoint,
int vertexIndex) |
LinearRing |
reverse()
Computes a new geometry which has all component coordinate sequences
in reverse order (opposite orientation) to this one.
|
distance, equals, equalsVertex, equalsVertex, equalsVertex, equalsVertex, equalsVertex, getCoordinate, getCoordinates, getCoordinatesList, getEndPoint, getM, getPoint, getSegmentCount, getStartPoint, getX, getY, getZ, hasVertex, isClockwise, isClosed, isCounterClockwise, isRing, merge, merge, normalize, points, prepare, split, subLine, subLine, subLine, subLineappendVertex, buffer, buffer, buffer, compareTo, compareToSameClass, contains, containsProperly, convert, convert, convexHull, copy, coveredBy, covers, crosses, deleteVertex, difference, disjoint, distance, equal, equals, equals, equals, equalsExact, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getAxisCount, getBoundary, getBoundaryDimension, getBoundingBox, getCentroid, getClassSortIndex, getCoordinateSystem, getDimension, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryFactory, getGeometryType, getInteriorPoint, getLength, getPoint, getPointWithin, getSegment, getSrid, getToVertex, getUserData, getVertex, getVertexCount, hashCode, hasInvalidXyCoordinates, insertVertex, intersection, intersects, intersects, isEmpty, isRectangle, isSimple, isValid, isWithinDistance, moveVertex, overlaps, relate, relate, segments, setUserData, symDifference, toClockwise, toCounterClockwise, touches, toWkt, union, union, vertices, withingetDataTypestatic final int MINIMUM_VALID_SIZE
LinearRing clone()
LineStringLineString object.
(including all coordinates contained by it).clone in interface Geometryclone in interface LineStringLinearRing move(double... deltas)
move in interface Geometrymove in interface LineStringLinearRing moveVertex(Point newPoint, int vertexIndex)
moveVertex in interface LineStringLinearRing reverse()
Geometryreverse in interface Geometryreverse in interface LineStringCopyright © 2015 Revolution Systems Inc.. All rights reserved.