[Mapserver-users] msLoadMap(): Unable to access file. Illegal mapfile name.

Philipp Jacob philipp.jacob at geosysnet.de
Wed Feb 5 09:21:24 EST 2003


now it works. thanks eric for your advice.

to 1) no, the .map ending is not an error. it works with it, and only 
with it, as i experienced.
to 2) that was my mistake.

philipp


Eric Bridger schrieb:

> I think you have a couple of errors in your query string:
> 1) map=mymap.map should be map=mymap  (no .map extension)
> 2) You only use the ? after /cgi-bin/mapserv?  All the other input 
> parameters should use & as the separator:
>
> http://localhost/cgi-bin/mapserv?map=mymap&mode=map&mapext=640543+240250+671823+262593 
>
>
> On Wed, 2003-02-05 at 12:59, Philipp Jacob wrote:
>
>> Hi list,
>> 
>> I set up the Mapserver correctly and created an own demo map by myself.
>> Everything works fine.
>> Now I want to improve the application by using some JavaScript, therefore I
>> need single images for the map, the reference etc. This can be done by 
>> giving
>> the Mapserver the CGI variable 'mode=map' in the URL, right?!
>> I used the following URL to get an image from Mapserver:
>> 
>> 'http://localhost/cgi-bin/mapserv?map=mymap.map?mode=map?mapext=640543+240250+671823+262593'
>> 
>> But the answer is as discribed in the subject:
>> ' msLoadMap(): Unable to access file. Illegal mapfile name.'
>> I already copied the mafile to the cgi-bin directory to avoid path 
>> problems, for now.
>> 
>> Has anyone an idea on how to fix this problem?
>> 
>> Thanks in advance,
>> Philipp
>> 
>> 
>> _______________________________________________
>> Mapserver-users mailing list
>> Mapserver-users at lists.gis.umn.edu
>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>> 
>  
>





More information about the mapserver-users mailing list