Fwd: [UMN_MAPSERVER-USERS] "msLoadMap(): Unable to access file. " Error Loading Map File
Jack Ling
fly2moon2 at GMAIL.COM
Fri Apr 1 01:19:36 PST 2005
Hi,
Thanks for your replies.
I still can't get it. I was following example1 of tutorial. Following
is the example1_1.map file (originally, it doesn't even have the
IMAGEPATH"/"IMAGEURL" clause stated. I added accordinly after your
advice).
I've modified httpd.conf as suggested so that I can now point to
/ms_tmp/ or my web server : http://localhost/ms_tmp/. It is fine even
displaying a png format file from there.
How if I put the map file below to /ms_tmp/ and run this:
http://localhost:81/cgi-bin/mapserv.exe?map=http://localhost/ms_tmp/example1_1.map&mode=map
I still got the error:
msLoadMap(): Unable to access file. (http://localhost/ms_tmp/example1-1.map)
I've restarted Apache2 server.
If I followed the suggestion to put absolute path like
http://localhost/cgi-bin/mapserv.exe?map=c:\\temp\\example1-1.map&mode=map
or
http://localhost/cgi-bin/mapserv.exe?map=c:\temp\example1-1.map&mode=map
It will complain: msProcessProjection(): Projection library error. No
such file or directory
your further insidght is appreciated.
MAP
IMAGETYPE PNG
EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514
SIZE 400 300
SHAPEPATH "data"
IMAGECOLOR 255 255 255
WEB
IMAGEPATH 'C:/Program Files/Apache Group/Apache2/MapServer/ms_tmp/'
IMAGEURL "/ms_tmp/"
END
PROJECTION
"proj=laea"
"ellps=clrk66"
"lat_0=45"
"lon_0=-100"
#
# Alternatively, you can specify an EPSG code.
# "init=epsg:2163"
#
END
# Start of LAYER DEFINITIONS ---------------------------------------------
LAYER # States polygon layer begins here
NAME states
DATA states_ugl
STATUS DEFAULT
TYPE POLYGON
PROJECTION
"init=epsg:4326"
END
CLASS
COLOR 232 232 232
OUTLINECOLOR 32 32 32
END
END # States polygon layer ends here
# End of LAYER DEFINITIONS -------------------------------
END # end of map file/object
---------- Forwarded message ----------
From: R Baud <webloper at infogeo.ch>
Date: Apr 1, 2005 4:24 PM
Subject: Re: [UMN_MAPSERVER-USERS] "msLoadMap(): Unable to access
file. " Error Loading Map File
To: Jack Ling <fly2moon2 at gmail.com>
Hi,
probably you did not configure this correctly in the .map file:
IMAGEPATH "D:/webdevdata/ms_tmp/"
IMAGEURL "/ms_tmp/"
That the path to the created maps by mapserver. The second is a web
accessible directory defined in apache to reach the created maps.
sample: 11111111.png = map created.
location: D:/webdevdata/ms_tmp/11111111.png
you can access it with your browser at:
http://localhost/ms_tmp/11111111.png
Got it?
But you have to define the directory /ms_tmp/ first in appache:
see your httpd.conf files and add something like this:
Alias /ms_tmp/ "D:/webdevdata/ms_tmp/"
<Directory "D:/webdevdata/ms_tmp/">
AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
that's it.
This said, don't loose your time to configure paths and other things.
Download the latest version of ms4w at www.maptools.org : apache, php,
php-applications are configured.
Try www.cartoweb.org. That's very enhanced too!
Hope this helps.
Rémy
More information about the MapServer-users
mailing list