@Test public void testTransformPoint() throws Exception { double y = 60.113924; double x = 25.017104; Point p2 = ProjectionHelper.transformPoint(new Point(x, y), EPSG_4258, EPSG_3067); assertEquals("lon", 389790.212234411, p2.getLon(), 1e-9); assertEquals("lat", 6665752.471279182, p2.getLat(), 0.0); Point p3 = ProjectionHelper.transformPoint(x, y, EPSG_4258, EPSG_3067); assertEquals("lon", 389790.212234411, p3.getLon(), 1e-9); assertEquals("lat", 6665752.471279182, p3.getLat(), 0.0); }
public static Point transformPoint(final double lon, final double lat, final String sourceSRS, final String targetSRS) { return transformPoint(new Point(lon, lat), sourceSRS, targetSRS); }
ProjectionHelper implements PointTransformer { public static Point transformPoint(final double lon, final double lat, final String sourceSRS, final String targetSRS) { return transformPoint(new Point(lon, lat), sourceSRS, targetSRS); } }
ProjectionHelper implements PointTransformer { public static Point transformPoint(final double lon, final double lat, final String sourceSRS, final String targetSRS) { return transformPoint(new Point(lon, lat), sourceSRS, targetSRS); }  }
ProjectionHelper implements PointTransformer { public static Point transformPoint(final double lon, final double lat, final String sourceSRS, final String targetSRS) { return transformPoint(new Point(lon, lat), sourceSRS, targetSRS); }  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); }
ProjectionHelper implements PointTransformer { public static Point transformPoint(final double lon, final double lat, final String sourceSRS, final String targetSRS) { return transformPoint(new Point(lon, lat), sourceSRS, targetSRS); }  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);  }