| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectcom.vividsolutions.jts.geom.Geometrycom.vividsolutions.jts.geom.LineStringpublic class LineStringextends GeometryLineString.
Field Summary |
Constructor Summary | |
| |
| |
Method Summary | |
void |
|
void |
|
void |
|
Object |
|
protected int |
|
protected Envelope | |
boolean |
|
Geometry | |
int | |
Coordinate | |
Coordinate |
|
CoordinateSequence | |
Coordinate[] | |
int | |
Point | |
String | |
double |
|
int | |
Point |
|
Point | |
boolean |
|
boolean |
|
boolean |
|
protected boolean |
|
boolean |
|
boolean |
|
void |
|
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 | |
public LineString(CoordinateSequence points, GeometryFactory factory)
- Parameters:
points- the points of the linestring, ornullto create the empty geometry. Consecutive points may not be equal.
public LineString(points[] ,
PrecisionModel precisionModel,
int SRID)Deprecated. Use GeometryFactory instead
protected int compareToSameClass(Object o)
- Overrides:
- compareToSameClass in interface Geometry
protected Envelope computeEnvelopeInternal()
- Overrides:
- computeEnvelopeInternal in interface Geometry
public boolean equalsExact(Geometry other, double tolerance)
- Overrides:
- equalsExact in interface Geometry
public int getBoundaryDimension()
- Overrides:
- getBoundaryDimension in interface Geometry
public double getLength()
Returns the length of thisLineString
- Returns:
- the area of the polygon
public boolean isClosed()
public boolean isCoordinate(Coordinate pt)
Returns true if the given point is a vertex of thisLineString.
- Parameters:
pt- theCoordinateto check
- Returns:
trueifptis one of thisLineString's vertices
protected boolean isEquivalentClass(Geometry other)
- Overrides:
- isEquivalentClass in interface Geometry
public boolean isRing()