public abstract class CoordinateReferenceSystem<P extends Position> extends CrsIdentifiable
| Modifier and Type | Field and Description |
|---|---|
private CoordinateSystem<P> |
coordinateSystem |
| Constructor and Description |
|---|
CoordinateReferenceSystem(CrsId crsId,
java.lang.String name,
CoordinateSystem<P> coordinateSystem)
Constructs a
CoordinateReferenceSystem. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
CoordinateSystemAxis |
getAxis(int idx)
Return the
CoordinateSystemAxes associated with this CoordinateReferenceSystem. |
int |
getAxisIndex(CoordinateSystemAxis axis)
Returns the index of the specified axis in this
CoordinateReferenceSystem, or
-1 if it is not an axis of this system. |
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e.
|
CoordinateSystem<P> |
getCoordinateSystem()
Returns the
CoordinateSystem associated with this CoordinateReferenceSystem. |
java.lang.Class<P> |
getPositionClass()
Returns the type token for the type of
Positions referenced in this system. |
int |
hashCode() |
boolean |
isCompound() |
getCrsId, getNameprivate final CoordinateSystem<P extends Position> coordinateSystem
public CoordinateReferenceSystem(CrsId crsId, java.lang.String name, CoordinateSystem<P> coordinateSystem)
CoordinateReferenceSystem.crsId - the CrsId that identifies this CoordinateReferenceSystem uniquelyname - the commonly used name for this CoordinateReferenceSystemcoordinateSystem - the coordinate system to usejava.lang.IllegalArgumentException - if less than two CoordinateSystemAxes are passed.public java.lang.Class<P> getPositionClass()
Positions referenced in this system.public CoordinateSystem<P> getCoordinateSystem()
CoordinateSystem associated with this CoordinateReferenceSystem.CoordinateSystem associated with this CoordinateReferenceSystem.public int getCoordinateDimension()
public CoordinateSystemAxis getAxis(int idx)
CoordinateSystemAxes associated with this CoordinateReferenceSystem.CoordinateSystemAxes.public int getAxisIndex(CoordinateSystemAxis axis)
CoordinateReferenceSystem, or
-1 if it is not an axis of this system.axis - the axis to look upCoordinateReferenceSystempublic boolean isCompound()
public boolean equals(java.lang.Object o)
equals in class CrsIdentifiablepublic int hashCode()
hashCode in class CrsIdentifiable