com.vividsolutions.jts.geom
Class LinearRing
java.lang.Object
com.vividsolutions.jts.geom.Geometry
com.vividsolutions.jts.geom.LineString
com.vividsolutions.jts.geom.LinearRing
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class LinearRing
- extends LineString
Models an OGC SFS 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.
- Version:
- 1.7
- See Also:
- Serialized Form
|
Method Summary |
java.lang.String |
getGeometryType()
Returns the name of this object's com.vivid.jts.geom
interface. |
boolean |
isSimple()
Returns true, since by definition LinearRings are always simple. |
| Methods inherited from class com.vividsolutions.jts.geom.LineString |
apply, apply, apply, clone, compareToSameClass, compareToSameClass, computeEnvelopeInternal, equalsExact, getBoundary, getBoundaryDimension, getCoordinate, getCoordinateN, getCoordinates, getCoordinateSequence, getDimension, getEndPoint, getLength, getNumPoints, getPointN, getStartPoint, isClosed, isCoordinate, isEmpty, isEquivalentClass, isRing, normalize, reverse |
| Methods inherited from class com.vividsolutions.jts.geom.Geometry |
buffer, buffer, buffer, checkNotGeometryCollection, compare, compareTo, compareTo, contains, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equalsExact, geometryChanged, geometryChangedAction, getArea, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getInteriorPoint, getNumGeometries, getPrecisionModel, getSRID, getUserData, hasNonEmptyElements, hasNullElements, intersection, intersects, isRectangle, isValid, isWithinDistance, overlaps, relate, relate, setSRID, setUserData, symDifference, toString, toText, touches, union, within |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LinearRing
public LinearRing(Coordinate[] points,
PrecisionModel precisionModel,
int SRID)
- Deprecated. Use GeometryFactory instead
- Constructs a
LinearRing with the given points.
- Parameters:
points - points forming a closed and simple linestring, or
null or an empty array to create the empty geometry.
This array must not contain null elements.precisionModel - the specification of the grid of allowable points
for this LinearRingSRID - the ID of the Spatial Reference System used by this
LinearRing
LinearRing
public LinearRing(CoordinateSequence points,
GeometryFactory factory)
- Constructs a
LinearRing with the vertices
specifed by the given CoordinateSequence.
- Parameters:
points - a sequence points forming a closed and simple linestring, or
null to create the empty geometry.
isSimple
public boolean isSimple()
- Returns
true, since by definition LinearRings are always simple.
- Overrides:
isSimple in class LineString
- Returns:
true- See Also:
Geometry.isSimple()
getGeometryType
public java.lang.String getGeometryType()
- Description copied from class:
Geometry
- Returns the name of this object's
com.vivid.jts.geom
interface.
- Overrides:
getGeometryType in class LineString
- Returns:
- the name of this
Geometrys most specific com.vividsolutions.jts.geom
interface