public enum DimensionalFlag extends Enum<DimensionalFlag>
PointSequence
or Geometry
and whether
the coordinates have Z- and/or M-components.
The coordinate dimension is the number of components in a coordinate. Points are 2-, 3- or 4-dimensional.
Enum Constant and Description |
---|
d2D
Indicates 2 dimensions (X,Y)
|
d2DM
Indicates 3 dimensions (X,Y,M).
|
d3D
Indicates 3 dimensions (X,Y,Z).
|
d3DM
Indicates 4 dimensions (X,Y,M,Z).
|
Modifier and Type | Method and Description |
---|---|
int |
getCoordinateDimension()
Returns the coordinate dimension of this
DimensionalFlag . |
int |
index(CoordinateComponent component)
Returns the (zero-based) position in a coordinate tuple of the specified
CoordinateComponent . |
boolean |
is3D()
Returns true for
DimensionalFlag s for coordinates with a Z-component. |
boolean |
isMeasured()
Returns true for
DimensionalFlag s for coordinates with an M-component. |
static DimensionalFlag |
valueOf(boolean is3D,
boolean isMeasured)
Returns an appropriate
DimensionalFlag depending on whether coordinates have
a Z- and/or M-coordinate component |
static DimensionalFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DimensionalFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DimensionalFlag d2D
public static final DimensionalFlag d3D
public static final DimensionalFlag d2DM
public static final DimensionalFlag d3DM
public final int X
public final int Y
public final int Z
public final int M
public static DimensionalFlag[] values()
for (DimensionalFlag c : DimensionalFlag.values()) System.out.println(c);
public static DimensionalFlag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static DimensionalFlag valueOf(boolean is3D, boolean isMeasured)
DimensionalFlag
depending on whether coordinates have
a Z- and/or M-coordinate componentis3D
- specifies that coordinates have a Z-componentisMeasured
- specifies that coordinates have an M-componentpublic int getCoordinateDimension()
DimensionalFlag
.
The coordinate dimension is the number of components in a coordinate.
public boolean is3D()
DimensionalFlag
s for coordinates with a Z-component.public boolean isMeasured()
DimensionalFlag
s for coordinates with an M-component.public int index(CoordinateComponent component)
CoordinateComponent
.component
- the compoment for which to return the positionCopyright © 2015 geolatte.org. All rights reserved.