Class DimensionUtility
- Namespace
- NetTopologySuite.Geometries
- Assembly
- NetTopologySuite.dll
Class containing static methods for conversions between dimension values and characters.
public class DimensionUtility
- Inheritance
-
DimensionUtility
- Inherited Members
Constructors
DimensionUtility()
public DimensionUtility()
Fields
SymA
Symbol for the A (dimension 2) pattern matrix entry
public const char SymA = '2'
Field Value
SymDontcare
Symbol for the DONTCARE pattern matrix entry
public const char SymDontcare = '*'
Field Value
SymFalse
Symbol for the FALSE pattern matrix entry
public const char SymFalse = 'F'
Field Value
SymL
Symbol for the L (dimension 1) pattern matrix entry
public const char SymL = '1'
Field Value
SymP
Symbol for the P (dimension 0) pattern matrix entry
public const char SymP = '0'
Field Value
SymTrue
Symbol for the TRUE pattern matrix entry
public const char SymTrue = 'T'
Field Value
Methods
ToDimensionSymbol(Dimension)
Converts the dimension value to a dimension symbol,
for example, True => 'T'
public static char ToDimensionSymbol(Dimension dimensionValue)
Parameters
dimensionValue
DimensionNumber that can be stored in the
IntersectionMatrix
. Possible values areTrue, False, Dontcare, 0, 1, 2
.
Returns
- char
Character for use in the string representation of an
IntersectionMatrix
. Possible values areT, F, * , 0, 1, 2
.
ToDimensionValue(char)
Converts the dimension symbol to a dimension value,
for example, '*' => Dontcare
public static Dimension ToDimensionValue(char dimensionSymbol)
Parameters
dimensionSymbol
charCharacter for use in the string representation of an
IntersectionMatrix
. Possible values areT, F, * , 0, 1, 2
.
Returns
- Dimension
Number that can be stored in the
IntersectionMatrix
. Possible values areTrue, False, Dontcare, 0, 1, 2
.