[mapserver-users] Map is OK with shp2img but blank with CGI
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Thu Oct 16 12:33:11 PDT 2008
Hi,
It would be a great help if you could send the whole mapfile, otherwise we must be guessing.
Still, here is my guess that is not related to mapfile but to where it is. Your mapfile is now in d: root directory. It may well be that Apache does not have a permission to use that. Move your mapfile somewhere under ms4w, for example to ms4w\apps.
-Jukka Rahkonen-
> Hi list !
>
> I am very very new to mapserver, so please forgive me if I missed
> something stupid.
> I've read the most important parts of the documentation (CGI reference and
> MapFile reference), so I am starting to get it, but I have a strange
> problem.
>
> I installed mapserver on my own computer.
> I created a basic mapfile, with only two layers. One is a RASTER layer,
> the other one a POSTGIS layer.
>
> If I run
> shp2img -m D:\mymap.map -o D:\test.png
> it runs OK, the image is created and the content is good (so EXTENT and
> SIZE are good).
>
> Now, if I open my browser and go to
> http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=D:\mymap.map&mode=map
> all I get is a blank image. The size of the image is OK (it is the size I
> specified in the mapfile).
>
> I tried with the command line equivalent (mapserv -nh
> "QUERYSTRING=map=map=D:\mymap.map&mode=map" <test.png), but same thing, a
> blank image.
>
> I have activated DEBUG on MAP level an both LAYER levels, but all I get in
> the debug file are lines saying "[Wed Oct 15 16:49:01 2008].370000 CGI
> Request 1 on process 3316" etc...
>
>
> Now, I really don't know what I should try next...
> Does anyone know what I did wrong here ?
>
> Thanks a lot for helping !
>
> --
> Arnaud Lesauvage
More information about the MapServer-users
mailing list