<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello Michael<br>
<br>
I just tried on my side and it worked well. Did you compiled with
"make", and executed "make install" after a successful Proj.4 build?
I believe (but I'm not sure, Frank could confirm) that "make
install" is necessary in order to copy some necessary files like the
EPSG list of definitions in proper locations. Maybe the exception
that you get is caused by Proj.4 not finding the EPSG file?<br>
<br>
Martin<br>
<br>
<br>
Le 23/11/11 02:57, Michael Speth a écrit :
<blockquote cite="mid:4ECC52F3.60001@landcareresearch.co.nz"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<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</font><br>
</blockquote>
<br>
</body>
</html>