Table of Contents

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

char

SymDontcare

Symbol for the DONTCARE pattern matrix entry

public const char SymDontcare = '*'

Field Value

char

SymFalse

Symbol for the FALSE pattern matrix entry

public const char SymFalse = 'F'

Field Value

char

SymL

Symbol for the L (dimension 1) pattern matrix entry

public const char SymL = '1'

Field Value

char

SymP

Symbol for the P (dimension 0) pattern matrix entry

public const char SymP = '0'

Field Value

char

SymTrue

Symbol for the TRUE pattern matrix entry

public const char SymTrue = 'T'

Field Value

char

Methods

ToDimensionSymbol(Dimension)

Converts the dimension value to a dimension symbol, for example, True => 'T'

public static char ToDimensionSymbol(Dimension dimensionValue)

Parameters

dimensionValue Dimension

Number that can be stored in the IntersectionMatrix. Possible values are True, False, Dontcare, 0, 1, 2.

Returns

char

Character for use in the string representation of an IntersectionMatrix. Possible values are T, 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 char

Character for use in the string representation of an IntersectionMatrix. Possible values are T, F, * , 0, 1, 2.

Returns

Dimension

Number that can be stored in the IntersectionMatrix. Possible values are True, False, Dontcare, 0, 1, 2.