[Mapserver-users] white (blank) image?

Jan Hartmann jhart at frw.uva.nl
Tue Feb 25 09:53:16 PST 2003


Pedro, try adding "STATUS DEFAULT" to your layers. Whenever you get a 
blank map in MapServer without error messages, it's either this or an 
invalid extent.

Jan


Pedro Salazar wrote:
> Greetings, 
> 
> I'm trying to view my shapes in mapserver. I defined a simple map file,
> but when I invoke my html I'm always getting a blank image!! In "extent"
> I put the lower-left point (minx miny) followed by the upper-right point
> (maxx maxy). I don't get any error (I think...), but I don't know how
> should I debug it!!
> 
> By the way, I comment in the PROJ directive (to not interfere).
> 
> Any help would be appreciated!
> 
> thanks,
> Pedro Salazar.
> 
> --html--
> ...
> <img border=1
> src="/cgi-bin/mapserv?map=/var/www/locawa/aveiro.map&mode=map"
> ...
> 
> --aveiro.map--
> 
> # MAP
> NAME AVEIRO
> EXTENT -8.6879 40.5247 -8.5165 40.7215
> SIZE 400 300
> UNITS METERS
> SHAPEPATH "data"
> 
> #PROJ (PROJ.4) # <32629>
> #PROJECTION
> #    "proj=utm"
> #    "zone=29"
> #    "ellps=WGS84"
> #    "datum=WGS84" 
> #    "units=m"
> #    "no_defs"
> #END
> 
> 
> LAYER
> NAME edif_public
> TYPE POLYGON
>     DATA edif_public
>     CLASS
>         OUTLINECOLOR 128 128 128
>         COLOR 225 230 185
>     END
> END
> 
> LAYER
> NAME zona_habit
> TYPE POLYGON
>     DATA zona_habit
>     CLASS
>         OUTLINECOLOR 128 128 128
>         COLOR 225 225 185
>     END
> END
> 
> END # MAP
> 

Jan Hartmann
Department of Geography
University of Amsterdam
jhart at frw.uva.nl




More information about the MapServer-users mailing list