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