com.vividsolutions.jts.geom
Class Location
java.lang.Object
com.vividsolutions.jts.geom.Location
public class Location
extends java.lang.Object
Constants representing the location of a point relative to a geometry. They
can also be thought of as the row or column index of a DE-9IM matrix. For a
description of the DE-9IM, see the
OpenGIS Simple Features
Specification for SQL .
static int | BOUNDARY - DE-9IM row index of the boundary of the first geometry and column index of
the boundary of the second geometry.
|
static int | EXTERIOR - DE-9IM row index of the exterior of the first geometry and column index of
the exterior of the second geometry.
|
static int | INTERIOR - DE-9IM row index of the interior of the first geometry and column index of
the interior of the second geometry.
|
static int | NONE - Used for uninitialized location values.
|
static char | toLocationSymbol(int locationValue) - Converts the location value to a location symbol, for example,
EXTERIOR => 'e'
.
|
BOUNDARY
public static final int BOUNDARY
DE-9IM row index of the boundary of the first geometry and column index of
the boundary of the second geometry. Location value for the boundary of a
geometry.
EXTERIOR
public static final int EXTERIOR
DE-9IM row index of the exterior of the first geometry and column index of
the exterior of the second geometry. Location value for the exterior of a
geometry.
INTERIOR
public static final int INTERIOR
DE-9IM row index of the interior of the first geometry and column index of
the interior of the second geometry. Location value for the interior of a
geometry.
NONE
public static final int NONE
Used for uninitialized location values.
toLocationSymbol
public static char toLocationSymbol(int locationValue)
Converts the location value to a location symbol, for example, EXTERIOR => 'e'
.
locationValue
- either EXTERIOR, BOUNDARY, INTERIOR or NONE
- either 'e', 'b', 'i' or '-'