Class: GeometryLocation

jsts.operation.distance.GeometryLocation

new GeometryLocation(component, segIndex, 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).
Parameters:
Name Type Description
component Geometry the component of the geometry containing the point.
segIndex int the segment index of the location, or INSIDE_AREA.
pt Coordinate the coordinate of the location.
Source:

Members

(static) INSIDE_AREA :int

A special value of segmentIndex used for locations inside area geometries. These locations are not located on a segment, and thus do not have an associated segment index.
Type:
  • int
Source:

component :Geometry

Type:
  • Geometry
Source:

pt :Coordinate

Type:
  • Coordinate
Source:

segIndex :int

Type:
  • int
Source:

Methods

getCoordinate() → {Coordinate}

Source:
Returns:
the Coordinate of this location.
Type
Coordinate

getGeometryComponent() → {Geometry}

Source:
Returns:
the geometry component on (or in) which this location occurs.
Type
Geometry

getSegmentIndex() → {int}

Returns the segment index for this location. If the location is inside an area, the index will have the value INSIDE_AREA;
Source:
Returns:
the segment index for the location, or INSIDE_AREA.
Type
int

isInsideArea() → {boolean}

Source:
Returns:
whether this location represents a point inside an area geometry.
Type
boolean