|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.operation.distance.GeometryLocation
Represents the location of a point on a Geometry. Maintains both the actual point location (which of course may not be exact) as well as information about the component and segment index where the point occurs. Locations inside area Geometrys will not have an associated segment index, so in this case the segment index will have the sentinel value of INSIDE_AREA.
Field Summary | |
static int |
INSIDE_AREA
Special value of segment-index for locations inside area geometries. |
Constructor Summary | |
GeometryLocation(Geometry component,
Coordinate pt)
Constructs a GeometryLocation specifying a point inside an area geometry. |
|
GeometryLocation(Geometry component,
int segIndex,
Coordinate pt)
Constructs a GeometryLocation specifying a point on a geometry, as well as the segment that the point is on (or INSIDE_AREA if the point is not on a segment). |
Method Summary | |
Coordinate |
getCoordinate()
Returns the location. |
Geometry |
getGeometryComponent()
Returns the geometry associated with this location. |
int |
getSegmentIndex()
Returns the segment index for this location. |
boolean |
isInsideArea()
Returns whether this GeometryLocation represents a point inside an area geometry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int INSIDE_AREA
Constructor Detail |
public GeometryLocation(Geometry component, int segIndex, Coordinate pt)
public GeometryLocation(Geometry component, Coordinate pt)
Method Detail |
public Geometry getGeometryComponent()
public int getSegmentIndex()
public Coordinate getCoordinate()
public boolean isInsideArea()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |