Class CoordinateReferenceSystem<P extends Position>

    • Constructor Detail

      • CoordinateReferenceSystem

        public CoordinateReferenceSystem​(CrsId crsId,
                                         String name,
                                         CoordinateSystem<P> coordinateSystem)
        Constructs a CoordinateReferenceSystem.
        Parameters:
        crsId - the CrsId that identifies this CoordinateReferenceSystem uniquely
        name - the commonly used name for this CoordinateReferenceSystem
        coordinateSystem - the coordinate system to use
        Throws:
        IllegalArgumentException - if less than two CoordinateSystemAxes are passed.
    • Method Detail

      • getPositionClass

        public Class<P> getPositionClass()
        Returns the type token for the type of Positions referenced in this system.
        Returns:
        a Class object
      • getCoordinateSystem

        public CoordinateSystem<P> getCoordinateSystem()
        Returns the CoordinateSystem associated with this CoordinateReferenceSystem.
        Returns:
        Returns the CoordinateSystem associated with this CoordinateReferenceSystem.
      • getCoordinateDimension

        public int getCoordinateDimension()
        Returns the coordinate dimension, i.e. the number of axes in this coordinate reference system.
        Returns:
        the coordinate dimension
      • getAxisIndex

        public 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.
        Parameters:
        axis - the axis to look up
        Returns:
        the index of the specified axis in this CoordinateReferenceSystem
      • isCompound

        public boolean isCompound()
      • hasZ

        public boolean hasZ()
      • hasM

        public boolean hasM()