Class Dimension
java.lang.Object
org.locationtech.jts.geom.Dimension
Provides constants representing the dimensions of a point, a curve and a surface.
Also provides constants representing the dimensions of the empty geometry and
non-empty geometries, and the wildcard constant
DONTCARE meaning "any dimension".
These constants are used as the entries in IntersectionMatrixs.- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDimension value of a surface (2).static final intDimension value for any dimension (= {FALSE, TRUE}).static final intDimension value of the empty geometry (-1).static final intDimension value of a curve (1).static final intDimension value of a point (0).static final charSymbol for the A (dimension 2) pattern matrix entrystatic final charSymbol for the DONTCARE pattern matrix entrystatic final charSymbol for the FALSE pattern matrix entrystatic final charSymbol for the L (dimension 1) pattern matrix entrystatic final charSymbol for the P (dimension 0) pattern matrix entrystatic final charSymbol for the TRUE pattern matrix entrystatic final intDimension value of non-empty geometries (= {P, L, A}). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic chartoDimensionSymbol(int dimensionValue) Converts the dimension value to a dimension symbol, for example,TRUE => 'T'.static inttoDimensionValue(char dimensionSymbol) Converts the dimension symbol to a dimension value, for example,'*' => DONTCARE.
-
Field Details
-
P
public static final int PDimension value of a point (0).- See Also:
-
L
public static final int LDimension value of a curve (1).- See Also:
-
A
public static final int ADimension value of a surface (2).- See Also:
-
FALSE
public static final int FALSEDimension value of the empty geometry (-1).- See Also:
-
TRUE
public static final int TRUEDimension value of non-empty geometries (= {P, L, A}).- See Also:
-
DONTCARE
public static final int DONTCAREDimension value for any dimension (= {FALSE, TRUE}).- See Also:
-
SYM_FALSE
public static final char SYM_FALSESymbol for the FALSE pattern matrix entry- See Also:
-
SYM_TRUE
public static final char SYM_TRUESymbol for the TRUE pattern matrix entry- See Also:
-
SYM_DONTCARE
public static final char SYM_DONTCARESymbol for the DONTCARE pattern matrix entry- See Also:
-
SYM_P
public static final char SYM_PSymbol for the P (dimension 0) pattern matrix entry- See Also:
-
SYM_L
public static final char SYM_LSymbol for the L (dimension 1) pattern matrix entry- See Also:
-
SYM_A
public static final char SYM_ASymbol for the A (dimension 2) pattern matrix entry- See Also:
-
-
Constructor Details
-
Dimension
public Dimension()
-
-
Method Details
-
toDimensionSymbol
public static char toDimensionSymbol(int dimensionValue) Converts the dimension value to a dimension symbol, for example,TRUE => 'T'.- Parameters:
dimensionValue- a number that can be stored in theIntersectionMatrix. Possible values are{TRUE, FALSE, DONTCARE, 0, 1, 2}.- Returns:
- a character for use in the string representation of
an
IntersectionMatrix. Possible values are{T, F, * , 0, 1, 2}.
-
toDimensionValue
public static int toDimensionValue(char dimensionSymbol) Converts the dimension symbol to a dimension value, for example,'*' => DONTCARE.- Parameters:
dimensionSymbol- a character for use in the string representation of anIntersectionMatrix. Possible values are{T, F, * , 0, 1, 2}.- Returns:
- a number that can be stored in the
IntersectionMatrix. Possible values are{TRUE, FALSE, DONTCARE, 0, 1, 2}.
-