Package org.geolatte.geom.crs
Class CoordinateReferenceSystem<P extends Position>
- java.lang.Object
-
- org.geolatte.geom.crs.CrsIdentifiable
-
- org.geolatte.geom.crs.CoordinateReferenceSystem<P>
-
- Direct Known Subclasses:
CompoundCoordinateReferenceSystem,SingleCoordinateReferenceSystem
public abstract class CoordinateReferenceSystem<P extends Position> extends CrsIdentifiable
A Coordinate Reference System.- Author:
- Karel Maesen, Geovise BVBA creation-date: 8/2/11
-
-
Constructor Summary
Constructors Constructor Description CoordinateReferenceSystem(CrsId crsId, String name, CoordinateSystem<P> coordinateSystem)Constructs aCoordinateReferenceSystem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CoordinateSystemAxisgetAxis(int idx)Return theCoordinateSystemAxesassociated with thisCoordinateReferenceSystem.intgetAxisIndex(CoordinateSystemAxis axis)Returns the index of the specified axis in thisCoordinateReferenceSystem, or -1 if it is not an axis of this system.intgetCoordinateDimension()Returns the coordinate dimension, i.e.CoordinateSystem<P>getCoordinateSystem()Returns theCoordinateSystemassociated with thisCoordinateReferenceSystem.Class<P>getPositionClass()Returns the type token for the type ofPositions referenced in this system.inthashCode()booleanhasM()booleanhasZ()booleanisCompound()-
Methods inherited from class org.geolatte.geom.crs.CrsIdentifiable
getCrsId, getName
-
-
-
-
Constructor Detail
-
CoordinateReferenceSystem
public CoordinateReferenceSystem(CrsId crsId, String name, CoordinateSystem<P> coordinateSystem)
Constructs aCoordinateReferenceSystem.- Parameters:
crsId- theCrsIdthat identifies thisCoordinateReferenceSystemuniquelyname- the commonly used name for thisCoordinateReferenceSystemcoordinateSystem- the coordinate system to use- Throws:
IllegalArgumentException- if less than twoCoordinateSystemAxesare passed.
-
-
Method Detail
-
getPositionClass
public Class<P> getPositionClass()
Returns the type token for the type ofPositions referenced in this system.- Returns:
- a Class object
-
getCoordinateSystem
public CoordinateSystem<P> getCoordinateSystem()
Returns theCoordinateSystemassociated with thisCoordinateReferenceSystem.- Returns:
- Returns the
CoordinateSystemassociated with thisCoordinateReferenceSystem.
-
getCoordinateDimension
public int getCoordinateDimension()
Returns the coordinate dimension, i.e. the number of axes in this coordinate reference system.- Returns:
- the coordinate dimension
-
getAxis
public CoordinateSystemAxis getAxis(int idx)
Return theCoordinateSystemAxesassociated with thisCoordinateReferenceSystem.- Returns:
- an array of
CoordinateSystemAxes.
-
getAxisIndex
public int getAxisIndex(CoordinateSystemAxis axis)
Returns the index of the specified axis in thisCoordinateReferenceSystem, or -1 if it is not an axis of this system.- Parameters:
axis- the axis to look up- Returns:
- the index of the specified axis in this
CoordinateReferenceSystem
-
isCompound
public boolean isCompound()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCrsIdentifiable
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCrsIdentifiable
-
hasZ
public boolean hasZ()
-
hasM
public boolean hasM()
-
-