<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1">Anyone have experience with using the jniwrap java
wrapper?<br>
<br>
I've compiled the jar and set the native library path; however, I
get an error when I try to run the example from the README. Is
there something that I haven't configured correctly?<br>
<br>
[code]<br>
PJ sourcePJ = new PJ("+init=epsg:32632"); //
(x,y) axis order<br>
PJ targetPJ = new PJ("+proj=latlong +datum=WGS84"); //
(λ,φ) axis order<br>
double[] coordinates = {<br>
500000, 0, // First coordinate<br>
400000, 100000, // Second coordinate<br>
600000, -100000 // Third coordinate<br>
};<br>
sourcePJ.transform(targetPJ, 2, coordinates, 0, 3);<br>
System.out.println(Arrays.toString(coordinates));<br>
<br>
[output]<br>
Exception in thread "main" java.lang.IllegalArgumentException:
+init=epsg:32632<br>
at org.proj4.PJ.<init>(Unknown Source)<br>
at
org.landcare.scenzgrid.proj4.test.HEALPixTest.main(HEALPixTest.java:36)<br>
<br>
Thanks<br>
</font>
<pre class="moz-signature" cols="72">--
Michael Speth
Research Systems Developer
Landcare Research</pre>
</body>
</html>