aboutsummaryrefslogtreecommitdiffstats
path: root/testing/proj/TestJni.java
diff options
context:
space:
mode:
authorHolger Jaekel <holger.jaekel@gmx.de>2019-11-21 22:37:39 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-24 18:33:29 +0100
commit7cc9caf0f2ae87b90a3caf4e247d1f833e6024d7 (patch)
tree11a9d9819675ea2d7b3af92580971de4630e22b2 /testing/proj/TestJni.java
parentc2da269432e9f3a48f77413d318c534fdc3ea975 (diff)
downloadaports-7cc9caf0f2ae87b90a3caf4e247d1f833e6024d7.tar.bz2
aports-7cc9caf0f2ae87b90a3caf4e247d1f833e6024d7.tar.xz
community/proj: move from testing
Diffstat (limited to 'testing/proj/TestJni.java')
-rw-r--r--testing/proj/TestJni.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/testing/proj/TestJni.java b/testing/proj/TestJni.java
deleted file mode 100644
index 6a517849f6..0000000000
--- a/testing/proj/TestJni.java
+++ /dev/null
@@ -1,20 +0,0 @@
-import org.proj4.*;
-import java.util.Arrays;
-
-/**
- * Converts coordinates from EPSG:32632 (WGS 84 / UTM zone 32N) to WGS84,
- * then prints the result to the standard output stream.
- */
-public class TestJni {
- public static void main(String[] args) throws PJException {
- PJ sourcePJ = new PJ("+init=epsg:32632"); // (x,y) axis order
- PJ targetPJ = new PJ("+proj=latlong +datum=WGS84"); // (λ,φ) axis order
- double[] coordinates = {
- 500000, 0, // First coordinate
- 400000, 100000, // Second coordinate
- 600000, -100000 // Third coordinate
- };
- sourcePJ.transform(targetPJ, 2, coordinates, 0, 3);
- System.out.println(Arrays.toString(coordinates));
- }
-}