Class: Location

jsts.geom.Location

new Location()

Constants representing the different topological locations which can occur in a Geometry. The constants are also used as the row and column indices of DE-9IM IntersectionMatrixes.
Source:

Members

(static, constant) BOUNDARY :number

The location value for the boundary of a geometry. Also, DE-9IM row index of the boundary of the first geometry and column index of the boundary of the second geometry.
Type:
  • number
Source:

(static, constant) EXTERIOR :number

The location value for the exterior of a geometry. Also, DE-9IM row index of the exterior of the first geometry and column index of the exterior of the second geometry.
Type:
  • number
Source:

(static, constant) INTERIOR :number

The location value for the interior of a geometry. Also, DE-9IM row index of the interior of the first geometry and column index of the interior of the second geometry.
Type:
  • number
Source:

(static, constant) NONE :number

Used for uninitialized location values.
Type:
  • number
Source:

Methods

(static) toLocationSymbol(locationValue) → {string}

Converts the location value to a location symbol, for example, EXTERIOR => 'e' .
Parameters:
Name Type Description
locationValue number either EXTERIOR, BOUNDARY, INTERIOR or NONE.
Source:
Returns:
either 'e', 'b', 'i' or '-'.
Type
string