<html>
<head>
<meta content="text/html; charset=GB2312" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Martin,<br>
I didn't do a make install, just make. So that must be the
problem. I'll try it out.<br>
<br>
Thanks!<br>
<br>
On 23/11/11 15:13, Martin Desruisseaux wrote:
<blockquote cite="mid:4ECC56CC.5060706@geomatys.fr" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=GB2312">
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"> <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>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Michael Speth
Research Systems Developer
Landcare Research</pre>
</body>
</html>