com.vividsolutions.jts.geom

Class 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 .
Version:
1.7

Field Summary

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.

Method Summary

static char
toLocationSymbol(int locationValue)
Converts the location value to a location symbol, for example, EXTERIOR => 'e' .

Field Details

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.
Field Value:
1

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.
Field Value:
2

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.
Field Value:
0

NONE

public static final int NONE
Used for uninitialized location values.
Field Value:
-1

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 '-'