|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.geom.Geometry
com.vividsolutions.jts.geom.LineString
com.vividsolutions.jts.geom.LinearRing
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.
Field Summary |
Fields inherited from class com.vividsolutions.jts.geom.Geometry |
envelope, SRID |
Constructor Summary | |
LinearRing(Coordinate[] points,
PrecisionModel precisionModel,
int SRID)
Deprecated. Use GeometryFactory instead |
|
LinearRing(CoordinateSequence points,
GeometryFactory factory)
Constructs a LinearRing with the given points. |
Method Summary | |
java.lang.String |
getGeometryType()
Returns the name of this object's com.vivid.jts.geom
interface. |
boolean |
isClosed()
|
boolean |
isSimple()
Returns false if the Geometry not simple. |
Methods inherited from class com.vividsolutions.jts.geom.LineString |
apply, apply, apply, clone, compareToSameClass, computeEnvelopeInternal, equalsExact, getBoundary, getBoundaryDimension, getCoordinate, getCoordinateN, getCoordinates, getCoordinateSequence, getDimension, getEndPoint, getLength, getNumPoints, getPointN, getStartPoint, isCoordinate, isEmpty, isEquivalentClass, isRing, normalize |
Methods inherited from class com.vividsolutions.jts.geom.Geometry |
buffer, buffer, checkNotGeometryCollection, compare, compareTo, contains, convexHull, crosses, difference, disjoint, distance, equal, equals, equalsExact, fromInternalGeometry, geometryChanged, geometryChangedAction, getArea, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getInteriorPoint, getPrecisionModel, getSRID, getUserData, hasNonEmptyElements, hasNullElements, intersection, intersects, isValid, isWithinDistance, overlaps, relate, relate, setSRID, setUserData, symDifference, toInternalGeometry, toString, toText, touches, union, within |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LinearRing(Coordinate[] points, PrecisionModel precisionModel, int SRID)
LinearRing
with the given points.
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 LinearRing
SRID
- the ID of the Spatial Reference System used by this
LinearRing
public LinearRing(CoordinateSequence points, GeometryFactory factory)
LinearRing
with the given points.
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.Method Detail |
public boolean isSimple()
Geometry
Geometry
not simple.
Subclasses provide their own definition of "simple". If
this Geometry
is empty, returns true
. In general, the SFS specifications of simplicity seem to follow the following rule:
Geometry
s, isSimple
= true
.
isSimple
in class LineString
public java.lang.String getGeometryType()
Geometry
com.vivid.jts.geom
interface.
getGeometryType
in class LineString
public boolean isClosed()
isClosed
in class LineString
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |