/** * Returns the coordinate dimension, i.e. the number of axes in this coordinate reference system. * * @return the coordinate dimension */ public int getCoordinateDimension() { return getCoordinateSystem().getCoordinateDimension(); }
/** * Returns the index of the specified axis in this {@code CoordinateReferenceSystem}, or * -1 if it is not an axis of this system. * * @param axis the axis to look up * @return the index of the specified axis in this {@code CoordinateReferenceSystem} */ public int getAxisIndex(CoordinateSystemAxis axis) { return getCoordinateSystem().getAxisIndex(axis); }
public static <P extends Position> boolean hasAxisOrder(CoordinateReferenceSystem<P> crs, int order) { CoordinateSystemAxis[] axes = crs.getCoordinateSystem().getAxes(); for (CoordinateSystemAxis axis : axes) { if (axis.getNormalOrder() == order) { return true; } } return false; }