public class CrsAxisOrder
extends java.lang.Object
Utility class to get the axis order of a coordinate reference system (CRS). It should be generalized and moved to the projection API on some future version.
Constructor and Description |
---|
CrsAxisOrder() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isXyAxisOrder(int epsgCode)
Returns
true if the CRS defined by the
provided EPSG code follows the XY axis order (i.e. |
static boolean |
isXyAxisOrder(java.lang.String epsgCode)
Returns
true if the CRS defined by the
provided EPSG code follows the XY axis order (i.e. |
public static boolean isXyAxisOrder(int epsgCode)
Returns true
if the CRS defined by the
provided EPSG code follows the XY axis order (i.e.
the first coordinate corresponds to the horizontal
axis while the second coordinate corresponds to
the vertical axis). Returns
Note that it will also return true for any unknown CRS
.epsgCode
- The EPSG code of the CRS to check, as integer.public static boolean isXyAxisOrder(java.lang.String epsgCode)
Returns true
if the CRS defined by the
provided EPSG code follows the XY axis order (i.e.
the first coordinate corresponds to the horizontal
axis while the second coordinate corresponds to
the vertical axis). Returns
Note that it will also return true for any unknown CRS
.epsgCode
- Epsg code as string, for instance "EPSG:4326" or just
"4326".