@Test public void testTransformPointEPSG_3067ToEPSG_4326() throws Exception { double lat = 7596848.323; double lon = 500001.1369; Point p3 = ProjectionHelper.transformPoint( lon, lat, EPSG_3067,EPSG_4326); Point p4 = ProjectionHelper.transformPoint( p3.getLon(), p3.getLat(), EPSG_4326, EPSG_3067); assertEquals("lon 3067-45326-3067", lon, p4.getLon(), 0.01); assertEquals("lat 3067-4326-3067", lat, p4.getLat(), 0.01); }
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);  }