public class LinearRing extends LineString
bounds, coordsGEOMETRY_ANNOTATION, GEOMETRY_COMPLEX, GEOMETRY_ELLIPSE, GEOMETRY_LINE, GEOMETRY_LINEAR_RING, GEOMETRY_LINESTRING, GEOMETRY_MULTI_ANNOTATION, GEOMETRY_MULTI_LINESTRING, GEOMETRY_MULTI_POINT, GEOMETRY_MULTI_POLYGON, GEOMETRY_POINT, GEOMETRY_POLYGON, GEOMETRY_RECTANGLE| Constructor and Description |
|---|
LinearRing() |
LinearRing(double[] tab) |
LinearRing(Point[] coords) |
| Modifier and Type | Method and Description |
|---|---|
LinearRing |
clone()
Clones this geometry.
|
short |
getGeometryId()
Returns the geometry class id.
|
boolean |
isRing()
always true
|
boolean |
isValid()
Tests if the ring is valid.
|
void |
setCoords(Point[] coords) |
boolean |
spatiallyEquals(Geometry o,
PrecisionModel precisionModel)
Tests if this geometry is equal to the argument, on a topological point of view.
|
boolean |
spatiallyEquals(LinearRing ring)
Deprecated.
|
boolean |
spatiallyEquals(LinearRing ring,
PrecisionModel precisionModel)
Tests if this geometry is equal to the argument, on a topological point of view
it means that they represents the same geometry, even if it is described differently (orientation of the rings, order of the rings) it does not remove additional points on lineString (3 points aligned), one must use smoother.removeExtraPoints() before in order to achieve that. |
java.lang.String |
toString()
Returns informations about the current geometry.
|
area, boundary, createBounds, endPoint, equals, getBounds, getCenteredPoint, getCoords, getGeometryType, hashCode, isClosed, length, lineIterator, numPoints, pointN, pointOnLine, serialize, sizeOf, spatiallyEquals, startPoint, transform, translateasText, spatiallyEqualsfinalize, getClass, notify, notifyAll, wait, wait, waitasText, spatiallyEqualspublic LinearRing()
public LinearRing(Point[] coords)
public LinearRing(double[] tab)
public void setCoords(Point[] coords)
setCoords in class LineStringpublic boolean isRing()
isRing in interface CurveisRing in class LineStringpublic java.lang.String toString()
GeometrytoString in interface GeometrytoString in class LineStringpublic LinearRing clone()
public boolean spatiallyEquals(Geometry o, PrecisionModel precisionModel)
LineStringspatiallyEquals in interface GeometryspatiallyEquals in class LineStringo - the geometry to be tested.precisionModel - the precision model to use while comparing geometries.@Deprecated public boolean spatiallyEquals(LinearRing ring)
ring - public boolean spatiallyEquals(LinearRing ring, PrecisionModel precisionModel)
ring - public short getGeometryId()
LineStringgetGeometryId in interface GeometrygetGeometryId in class LineStringpublic boolean isValid()