com.vividsolutions.jts.geom

Class LinearRing

Implemented Interfaces:
Cloneable, Comparable, Serializable

public class LinearRing
extends LineString

Basic implementation of LinearRing. The first and last point in the coordinate sequence must be equal. Either orientation of the ring is allowed. A valid ring must not self-intersect.
Version:
1.6

Field Summary

Fields inherited from class com.vividsolutions.jts.geom.Geometry

SRID, envelope

Constructor Summary

LinearRing(CoordinateSequence points, GeometryFactory factory)
Constructs a LinearRing with the given points.
LinearRing(points[] , PrecisionModel precisionModel, int SRID)
Deprecated. Use GeometryFactory instead

Method Summary

String
getGeometryType()
boolean
isClosed()
boolean
isSimple()

Methods inherited from class com.vividsolutions.jts.geom.LineString

apply, apply, apply, clone, compareToSameClass, computeEnvelopeInternal, equalsExact, getBoundary, getBoundaryDimension, getCoordinate, getCoordinateN, getCoordinateSequence, getCoordinates, getDimension, getEndPoint, getGeometryType, getLength, getNumPoints, getPointN, getStartPoint, isClosed, isCoordinate, isEmpty, isEquivalentClass, isRing, isSimple, normalize

Methods inherited from class com.vividsolutions.jts.geom.Geometry

apply, apply, apply, buffer, buffer, checkNotGeometryCollection, clone, compare, compareTo, compareToSameClass, computeEnvelopeInternal, contains, convexHull, crosses, difference, disjoint, distance, equal, equals, equalsExact, equalsExact, geometryChanged, geometryChangedAction, getArea, getBoundary, getBoundaryDimension, getCentroid, getCoordinate, getCoordinates, getDimension, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getGeometryType, getInteriorPoint, getLength, getNumGeometries, getNumPoints, getPrecisionModel, getSRID, getUserData, hasNonEmptyElements, hasNullElements, intersection, intersects, isEmpty, isEquivalentClass, isRectangle, isSimple, isValid, isWithinDistance, normalize, overlaps, relate, relate, setSRID, setUserData, symDifference, toString, toText, touches, union, within

Constructor Details

LinearRing

public LinearRing(CoordinateSequence points,
                  GeometryFactory factory)
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.

LinearRing

public LinearRing(points[] ,
                  PrecisionModel precisionModel,
                  int SRID)

Deprecated. Use GeometryFactory instead

Constructs a LinearRing with the given points.
Parameters:
precisionModel - the specification of the grid of allowable points for this LinearRing
SRID - the ID of the Spatial Reference System used by this LinearRing

Method Details

getGeometryType

public String getGeometryType()
Overrides:
getGeometryType in interface LineString

isClosed

public boolean isClosed()
Overrides:
isClosed in interface LineString

isSimple

public boolean isSimple()
Overrides:
isSimple in interface LineString