Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.vividsolutions.jts.geom.Geometry
com.vividsolutions.jts.geom.LineString
public class LineString
extends Geometry
LineString
.
Field Summary |
Constructor Summary | |
| |
|
Method Summary | |
void |
|
void |
|
void |
|
Object |
|
protected int |
|
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 |
|
LineString |
|
Methods inherited from class com.vividsolutions.jts.geom.Geometry | |
apply , apply , apply , buffer , buffer , buffer , checkNotGeometryCollection , clone , compare , compareTo , compareTo , compareToSameClass , compareToSameClass , computeEnvelopeInternal , contains , convexHull , coveredBy , covers , 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, ornull
to 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 int compareToSameClass(Object o, CoordinateSequenceComparator comp)
- 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
- theCoordinate
to check
- Returns:
true
ifpt
is one of thisLineString
's vertices
protected boolean isEquivalentClass(Geometry other)
- Overrides:
- isEquivalentClass in interface Geometry
public boolean isRing()
public void normalize()
Normalizes a LineString. A normalized linestring has the first point which is not equal to it's reflected point less than the reflected point.
public LineString reverse()
Creates aLineString
whose coordinates are in the reverse order of this objects
- Returns:
- a
LineString
with coordinates in the reverse order