ProjectionHelper implements PointTransformer { public static boolean isFirstAxisNorth(CoordinateReferenceSystem crs) { return crs.getCoordinateSystem().getAxis(0).getDirection().absolute() == AxisDirection.NORTH || crs.getCoordinateSystem().getAxis(0).getDirection().absolute() == AxisDirection.UP || crs.getCoordinateSystem().getAxis(0).getDirection().absolute() == AxisDirection.DISPLAY_UP; }  static Point transformPoint(final double lon, final double lat, final String sourceSRS, final String targetSRS); Point reproject(final Point point, final String sourceSRS, final String targetSRS); static Point transformPoint(final Point point, final String sourceSRS, final String targetSRS); static Point transformPoint(final String lon, final String lat, final String sourceSRS, final String targetSRS); static Point transformPoint(final double lon, final double lat, final CoordinateReferenceSystem sourceCrs, final String targetSRS); static Point transformPoint(final double lon, final double lat, final CoordinateReferenceSystem sourceCrs, final CoordinateReferenceSystem targetCrs); static Point transformPoint(final Point point, final CoordinateReferenceSystem sourceCrs, final CoordinateReferenceSystem targetCrs); static boolean isFirstAxisNorth(CoordinateReferenceSystem crs); static String shortSyntaxEpsg(String crs); static String longSyntaxEpsg(String crs); static CoordinateReferenceSystem longSyntaxCrs(String crs); static JSONObject transformGeometry(JSONObject geometry, final String sourceSRS, final String targetSRS, boolean sourceLon1st, boolean targetLon1st); static void flipFeatureYX(Geometry fnG); static void swapGeometryXY(FeatureCollection<SimpleFeatureType, SimpleFeature> featureCollection);  }
@Test public void testIsFirstAxisNorth() throws Exception { assertTrue("First axis north " + EPSG_4258, ProjectionHelper.isFirstAxisNorth(CRS.decode(EPSG_4258))); assertTrue("First axis north " + WKTHelper.PROJ_EPSG_4326, ProjectionHelper.isFirstAxisNorth(CRS.decode(WKTHelper.PROJ_EPSG_4326))); assertFalse("First axis NOT north " + EPSG_3067, ProjectionHelper.isFirstAxisNorth(CRS.decode(EPSG_3067))); }