I'm using MapManager to create the file .map but I can't understand how mapserver opens this file, I try to see the folder of pmapper where there is the demo file. I put the my .map file there and then, I changed the path of mapserver but it is not the right way.
-
thank you, I tried to use the link but I don't find the page– AndreaJan 10 at 6:15
-
the link to the demo page is: localhost/pmapper/map_default.phtml but it's quit different from yours. thanks– AndreaJan 15 at 12:49
-
I tried to modify your link in these way: localhost/pmapper//executable?map=path/to/… localhost/pmapper/executable?map=C:\ms4w\apps\mapserv-demo/to/prova.map&other=requestsparams& the file name is "prova.map" I put it in the same folder where I found the demo file .map– AndreaJan 15 at 12:51
-
thanks as soon as I try– AndreaJan 17 at 14:22
-
I wrote: localhost/cgi-bin/mapserv.exe?map=C:\ms4w\apps\mapserv-demo/to/prova.map& I get: msLoadMap(): Unable to access file. (C:\ms4w\apps\mapserv-demo/to/prova.map) I wrote: localhost/cgi-bin/mapserv.exe?C:\ms4w\apps\mapserv-demo/to/prova.map& I get: msCGILoadMap(): Web application error. CGI variable "map" is not set.– AndreaJan 22 at 16:52
1 Answer
MapServer can find/access the map file (or files) though a number of mechanisms, such as the global configuration file for version 8, and/or in a web server configuration file, and/or you can call it as part of the request like (using your configuration example):
http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\apps\pmapper\pmapper_demodata\prova.map&
This is the URL to which a client appends appropriate request parameters. So for example if you've allowed a WMS, the following request would give an XML response.
http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\apps\pmapper\pmapper_demodata\prova.map&service=WMS&request=GetCapabilities&