Package org.locationtech.jts.geom
Class Location
java.lang.Object
org.locationtech.jts.geom.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 IntersectionMatrix
es.- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The location value for the boundary of a geometry.static final int
The location value for the exterior of a geometry.static final int
The location value for the interior of a geometry.static final int
Used for uninitialized location values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic char
toLocationSymbol
(int locationValue) Converts the location value to a location symbol, for example,EXTERIOR => 'e'
.
-
Field Details
-
INTERIOR
public static final int INTERIORThe 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.- See Also:
-
BOUNDARY
public static final int BOUNDARYThe 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.- See Also:
-
EXTERIOR
public static final int EXTERIORThe 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.- See Also:
-
NONE
public static final int NONEUsed for uninitialized location values.- See Also:
-
-
Constructor Details
-
Location
public Location()
-
-
Method Details
-
toLocationSymbol
public static char toLocationSymbol(int locationValue) Converts the location value to a location symbol, for example,EXTERIOR => 'e'
.- Parameters:
locationValue
- either EXTERIOR, BOUNDARY, INTERIOR or NONE- Returns:
- either 'e', 'b', 'i' or '-'
-