P - the Position type for the systempublic abstract class CoordinateSystem<P extends Position> extends Object implements Serializable
A coordinate system is characterized by its CoordinateSystemAxes (in order).
| Constructor and Description |
|---|
CoordinateSystem(CoordinateSystemAxis... axes)
Constructs a
CoordinateSystem. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
abstract CoordinateSystem<?> |
extend(CoordinateSystemAxis axis)
Create a new coordinate system with the axes of this system plus the specified axis
|
CoordinateSystemAxis[] |
getAxes()
Returns the
CoordinateSystemAxes of this CoordinateSystem (in order). |
CoordinateSystemAxis |
getAxis(int index)
Returns the
CoordinateSystemAxis at the specified position. |
List<CoordinateSystemAxisDirection> |
getAxisDirections()
Returns a list of all the directions of this systems
|
CoordinateSystemAxis |
getAxisForComponentIndex(int i)
Return the axis that corresponds to the i-th element in the coordinates for a
Position
in this CoordinateSystem. |
int |
getAxisIndex(CoordinateSystemAxis axis)
Returns the position of the specified
CoordinateSystemAxis in this CoordinateSystem,
or -1 if it is not an axis of this instance. |
List<Integer> |
getAxisNormalOrder()
Returns the normal order value for the axes of this systems in the order that the axes have been defined for this
system.
|
Unit |
getAxisUnit(int index)
Returns the
Unit of the axis at the specified position. |
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e.
|
abstract Class<P> |
getPositionClass() |
int |
hashCode() |
abstract boolean |
hasM()
does the system have a Measure axis?
|
abstract boolean |
hasZ()
Does the coordinate system have a Vertical or Z axis?
|
abstract CoordinateSystem<?> |
merge(OneDimensionCoordinateSystem<?> coordinateSystem)
Create a coordinate system that merges this instance with the specified system
|
public CoordinateSystem(CoordinateSystemAxis... axes)
CoordinateSystem.
CoordinateSystems are characterized by their CoordinateSystemAxes.
axes - the sequence (at least two) of its CoordinateSystems.IllegalArgumentException - when less than two axes are specified, or when an argument is null.public CoordinateSystemAxis[] getAxes()
CoordinateSystemAxes of this CoordinateSystem (in order).public List<CoordinateSystemAxisDirection> getAxisDirections()
public List<Integer> getAxisNormalOrder()
public int getCoordinateDimension()
public int getAxisIndex(CoordinateSystemAxis axis)
CoordinateSystemAxis in this CoordinateSystem,
or -1 if it is not an axis of this instance.axis - public CoordinateSystemAxis getAxisForComponentIndex(int i)
Position
in this CoordinateSystem.i - the 0-base index for a coordinateIndexOutOfBoundsException - if i > getCoordinateDimension() - 1public CoordinateSystemAxis getAxis(int index)
CoordinateSystemAxis at the specified position.index - public Unit getAxisUnit(int index)
Unit of the axis at the specified position.index - public abstract CoordinateSystem<?> merge(OneDimensionCoordinateSystem<?> coordinateSystem)
coordinateSystem - the system to merge withCoordinateSystemUnsupportedOperationException - if no supported coordinate system can represent the mergepublic abstract CoordinateSystem<?> extend(CoordinateSystemAxis axis)
axis - the additional axisCoordinateSystemUnsupportedOperationException - if no supported coordinate system can contain the axes.public abstract boolean hasZ()
public abstract boolean hasM()
Copyright © 2021 geolatte.org. All rights reserved.