public class LinearRingDoubleGf extends LineStringDoubleGf implements LinearRing
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
MINIMUM_VALID_SIZE| Constructor and Description |
|---|
LinearRingDoubleGf(GeometryFactory factory) |
LinearRingDoubleGf(GeometryFactory factory,
int axisCount,
double... points)
Constructs a
LinearRing with the vertices
specifed by the given LineString. |
LinearRingDoubleGf(GeometryFactory geometryFactory,
int axisCount,
int vertexCount,
double... coordinates) |
LinearRingDoubleGf(GeometryFactory factory,
LineString points)
Constructs a
LinearRing with the vertices
specifed by the given LineString. |
| Modifier and Type | Method and Description |
|---|---|
<V extends Geometry> |
appendVertex(Point newPoint,
int... geometryId) |
LinearRingDoubleGf |
clone()
Creates and returns a full copy of this
LineString object. |
<V extends Geometry> |
copy(GeometryFactory geometryFactory)
Create a copy of the geometry io the requried geometry factory.
|
LineString |
deleteVertex(int vertexIndex) |
int |
getBoundaryDimension()
Returns
Dimension.FALSE, since by definition LinearRings do
not have a boundary. |
<V extends Geometry> |
insertVertex(Point newPoint,
int... vertexId) |
boolean |
isClosed()
Tests whether this ring is closed.
|
LinearRing |
move(double... deltas) |
LinearRing |
moveVertex(Point newPoint,
int vertexIndex) |
LinearRing |
reverse()
Creates a
LineString whose coordinates are in the reverse order of
this objects |
convertCoordinates, getBoundingBox, getCoordinate, getCoordinates, getGeometryFactory, getNewCoordinates, getUserData, getVertexCount, isEmpty, setUserDatacompareToSameClass, computeBoundingBox, deleteVertex, distance, doEquals, equals, equalsExact, equalsVertex, equalsVertex, equalsVertex, equalsVertex, equalsVertex, getBoundary, getCoordinatesList, getDataType, getDimension, getEndPoint, getLength, getM, getMinVertexCount, getPoint, getPoint, getPointWithin, getSegment, getSegmentCount, getStartPoint, getToVertex, getVertex, getX, getY, getZ, hasVertex, intersects, isClockwise, isCounterClockwise, isEquivalentClass, isRing, merge, merge, moveCoordinates, moveVertex, normalize, orientationIndex, points, prepare, segments, split, subLine, subLine, subLine, subLine, toClockwise, toCounterClockwise, verticesbuffer, buffer, buffer, checkNotGeometryCollection, compare, compareTo, contains, containsProperly, convert, convert, convexHull, coveredBy, covers, createVertexId, crosses, difference, disjoint, distance, envelopeCovers, envelopesIntersect, equal, equals, equals, equals, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getAxisCount, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryType, getInteriorPoint, getNonZeroGeometryFactory, getSrid, getVertexIndex, hashCode, hasInvalidXyCoordinates, hasNonEmptyElements, hasNullElements, intersection, intersects, isAnyTargetComponentInTest, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setVertexIndex, symDifference, toString, touches, toWkt, union, union, withinfinalize, getClass, notify, notifyAll, wait, wait, waitdistance, equals, equalsVertex, equalsVertex, equalsVertex, equalsVertex, equalsVertex, getCoordinate, getCoordinates, getCoordinatesList, getEndPoint, getM, getPoint, getSegmentCount, getStartPoint, getX, getY, getZ, hasVertex, isClockwise, isCounterClockwise, isRing, merge, merge, normalize, points, prepare, split, subLine, subLine, subLine, subLinebuffer, buffer, buffer, compareTo, compareToSameClass, contains, containsProperly, convert, convert, convexHull, coveredBy, covers, crosses, deleteVertex, difference, disjoint, distance, equal, equals, equals, equals, equalsExact, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getAxisCount, getBoundary, 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, intersection, intersects, intersects, isEmpty, isRectangle, isSimple, isValid, isWithinDistance, moveVertex, overlaps, relate, relate, segments, setUserData, symDifference, toClockwise, toCounterClockwise, touches, toWkt, union, union, vertices, withingetDataTypepublic LinearRingDoubleGf(GeometryFactory factory)
public LinearRingDoubleGf(GeometryFactory factory, int axisCount, double... points)
LinearRing with the vertices
specifed by the given LineString.points - a sequence points forming a closed and simple linestring, or
null to create the empty geometry.IllegalArgumentException - if the ring is not closed, or has too few pointspublic LinearRingDoubleGf(GeometryFactory geometryFactory, int axisCount, int vertexCount, double... coordinates)
public LinearRingDoubleGf(GeometryFactory factory, LineString points)
LinearRing with the vertices
specifed by the given LineString.points - a sequence points forming a closed and simple linestring, or
null to create the empty geometry.IllegalArgumentException - if the ring is not closed, or has too few pointspublic <V extends Geometry> V appendVertex(Point newPoint, int... geometryId)
appendVertex in interface GeometryappendVertex in class AbstractLineStringpublic LinearRingDoubleGf clone()
LineStringDoubleGfLineString object.
(including all coordinates contained by it).clone in interface Geometryclone in interface LinearRingclone in interface LineStringclone in class LineStringDoubleGfpublic <V extends Geometry> V copy(GeometryFactory geometryFactory)
Geometrycopy in interface Geometrycopy in class AbstractLineStringgeometryFactory - The geometry factory to convert the geometry to.public LineString deleteVertex(int vertexIndex)
deleteVertex in class AbstractLineStringpublic int getBoundaryDimension()
Dimension.FALSE, since by definition LinearRings do
not have a boundary.getBoundaryDimension in interface GeometrygetBoundaryDimension in class AbstractLineStringpublic <V extends Geometry> V insertVertex(Point newPoint, int... vertexId)
insertVertex in interface GeometryinsertVertex in class AbstractLineStringpublic boolean isClosed()
isClosed in interface LineStringisClosed in class AbstractLineStringpublic LinearRing move(double... deltas)
move in interface Geometrymove in interface LinearRingmove in interface LineStringmove in class AbstractLineStringpublic LinearRing moveVertex(Point newPoint, int vertexIndex)
moveVertex in interface LinearRingmoveVertex in interface LineStringmoveVertex in class AbstractLineStringpublic LinearRing reverse()
AbstractLineStringLineString whose coordinates are in the reverse order of
this objectsreverse in interface Geometryreverse in interface LinearRingreverse in interface LineStringreverse in class AbstractLineStringLineString with coordinates in the reverse orderCopyright © 2015 Revolution Systems Inc.. All rights reserved.