<br><font size=2 face="sans-serif">Hi</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Maybe</font><font size=3> </font><font size=2 face="sans-serif"><br>
http://article.gmane.org/gmane.comp.gis.mapserver.user/18799/</font><font size=3>
</font><font size=2 face="sans-serif"><br>
is helpfull. </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
Benedikt</font><font size=3> </font>
<br>
<br><font size=2><tt>UMN MapServer Users List &lt;MAPSERVER-USERS@LISTS.UMN.EDU&gt;
schrieb am 07.12.2006 12:33:37:<br>
<br>
&gt; Dear friends,<br>
&gt; I am trying to use the PROJECTION section in a map file using MapScritpt<br>
&gt; via Java on Windows.<br>
&gt; <br>
&gt; The map file is very basic, and when using the map file reported below
the<br>
&gt; program works fine; if I uncomment the three lines about PROJECTION
I have<br>
&gt; the following error:<br>
&gt; <br>
&gt; Exception in thread &quot;main&quot; java.lang.UnknownError: No such
file or directory<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native
Method)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at edu.umn.gis.mapscript.mapObj.&lt;init&gt;(mapObj.java:312)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at Demo.Main.&lt;init&gt;(Main.java:10)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at Demo.Main.main(Main.java:16)<br>
&gt; Java Result: 1<br>
&gt; <br>
&gt; I &quot;suspect&quot; the reason is some unreacheable file or directory
used by the<br>
&gt; proj.dll (??), however the PATH include C:\ms4w\Apache\cgi-bin (where<br>
&gt; proj.dll is located whith the distribution package).<br>
&gt; <br>
&gt; The map file is the following (and it works if used via PHP !!):<br>
&gt; MAP<br>
&gt; &nbsp; IMAGETYPE PNG<br>
&gt; &nbsp; EXTENT 126500 3907000 1521500 5302000<br>
&gt; &nbsp; UNITS METERS<br>
&gt; &nbsp; SIZE 600 600<br>
&gt; &nbsp; IMAGECOLOR 230 230 90<br>
&gt; &nbsp; TEMPLATEPATTERN &quot;itasca&quot;<br>
&gt; &nbsp; LAYER<br>
&gt; &nbsp; &nbsp; NAME &quot;areas&quot;<br>
&gt; &nbsp; &nbsp; CONNECTIONTYPE postgis<br>
&gt; &nbsp; &nbsp; CONNECTION &quot;user=DBroot password=root dbname=s1
host=127.0.0.1 port=5432&quot;<br>
&gt; &nbsp; &nbsp; DATA &quot;the_geom FROM (SELECT * FROM aree_geografiche
ORDER BY tipo_area<br>
&gt; DESC) AS confini USING UNIQUE gid&quot;<br>
&gt; &nbsp; &nbsp; TYPE POLYGON<br>
&gt; &nbsp; &nbsp; STATUS ON<br>
&gt; <br>
&gt; # &nbsp; &nbsp;PROJECTION<br>
&gt; # &nbsp; &nbsp; &nbsp;&quot;init=epsg:32632&quot;<br>
&gt; # &nbsp; &nbsp;END<br>
&gt; <br>
&gt; &nbsp; &nbsp; CLASS<br>
&gt; &nbsp; &nbsp; &nbsp; NAME &quot;States&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; STYLE<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; WIDTH 3<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 194 194 194<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; OUTLINECOLOR 0 0 0<br>
&gt; &nbsp; &nbsp; &nbsp; END<br>
&gt; &nbsp; &nbsp; END<br>
&gt; &nbsp; END<br>
&gt; END # Map File<br>
&gt; <br>
&gt; Thank you,<br>
&gt; Francesco.<br>
</tt></font>