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

Benoît Andrieu bea at ixsea.com
Thu Oct 16 05:10:05 PDT 2008


Hi,

which version of mapserver are you using ?

In the actual version, and as expected from the specifications, some 
parameters are mandatory such as :
width, height
srs
styles
version
request

But maybe I am wrong and the mode=map is doing something else..

Hope it helps !!

Benoît Andrieu

----- Original Message ----- 
From: <mapserver_users.domain.thewild_codata at spamgourmet.com>
To: <mapserver-users at lists.osgeo.org>
Sent: Wednesday, October 15, 2008 4:51 PM
Subject: [mapserver-users] Map is OK with shp2img but blank with CGI


> 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
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users 




More information about the MapServer-users mailing list