[mapserver-users] Map is OK with shp2img but blank with CGI

mapserver_users.domain.thewild_codata at spamgourmet.com mapserver_users.domain.thewild_codata at spamgourmet.com
Wed Oct 15 07:51:24 PDT 2008


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