public class GeometryLocation
extends java.lang.Object
INSIDE_AREA
.Modifier and Type | Field | Description |
---|---|---|
static int |
INSIDE_AREA |
A special value of segmentIndex used for locations inside area geometries.
|
Constructor | Description |
---|---|
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). |
GeometryLocation(Geometry component,
Coordinate pt) |
Constructs a GeometryLocation specifying a point inside an area geometry.
|
Modifier and Type | Method | Description |
---|---|---|
Coordinate |
getCoordinate() |
Returns the
Coordinate of this location. |
Geometry |
getGeometryComponent() |
Returns the geometry component on (or in) which this location occurs.
|
int |
getSegmentIndex() |
Returns the segment index for this location.
|
boolean |
isInsideArea() |
Tests whether this location represents a point inside an area geometry.
|
public static final int INSIDE_AREA
public GeometryLocation(Geometry component, int segIndex, Coordinate pt)
INSIDE_AREA
if the point is not on a segment).component
- the component of the geometry containing the pointsegIndex
- the segment index of the location, or INSIDE_AREApt
- the coordinate of the locationpublic GeometryLocation(Geometry component, Coordinate pt)
component
- the component of the geometry containing the pointpt
- the coordinate of the locationpublic Geometry getGeometryComponent()
public int getSegmentIndex()
INSIDE_AREA
;public Coordinate getCoordinate()
Coordinate
of this location.public boolean isInsideArea()
Copyright © 2018. All rights reserved.