[Mapserver-users] Problems getting mapserver to run w/ bitmap images

Jan Hartmann jhart at frw.uva.nl
Thu Mar 20 11:36:50 EST 2003


Bernhard,

I'm not sure if your EXTENT matches the coordinates of the TIFF 
.wld-file, but you have to set STATUS DEFAULT anyway to see somehing. 
STATUS ON only shows those maps that are specifically requested in the 
URL: .../mapserv?map=...&layers=...

MapServer's golden rule #1: If you don't see anything, set STATUS 
DEFAULT and check your EXTENT.

Couldn't we create a separate mailing list for this problem?

Jan

Bernhard Rosenkränzer wrote:
> Hi, 
> I'm trying to set up mapserver w/ an input file in tif format (map of the local area, 1280x1024). 
> Even the simplest example doesn't seem to work though (the mapserver installation is ok though, the itasca 
> example works perfectly). 
>  
> Support for bitmap formats is compiled in; mapserv -v says: 
> MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ 
> SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL 
> INPUT=SHAPEFILE 
>  
>  
> This is the map file I'm using: 
>  
> MAP 
>         NAME "TEST" 
>         EXTENT 0 0 1280 800 
>         SIZE 1280 800 
>         SHAPEPATH "/var/www/mapserver/data" 
>         IMAGECOLOR 255 255 255 
>  
>         WEB 
>                 TEMPLATE test.html 
>                 IMAGEPATH "/var/www/mapserver/tmp/" 
>                 IMAGEURL "/mapserver/tmp/" 
>         END 
>  
>         LAYER 
>                 NAME "map" 
>                 DATA "tiled.tif" 
>                 TYPE RASTER 
>                 STATUS ON 
>         END 
> END 
>  
> This is the launcher html: 
>  
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 
> <html> 
> <head> 
> <title>Test</title> 
> <body> 
> <h3>Mapserver test install</h3> 
> <img border="1" 
> src="/cgi-map/mapserv?map=test.map&mode=map&map_web_imagepath=/var/www/mapserver/tmp/&map_web_imageurl=/mapserver/tmp/"> 
> </body> 
> </html> 
>  
>  
> I don't get any error messages (even a mv mapserv mapserv.bin; echo 'strace -o /tmp/mapserv.trace 
> mapserv.bin' >mapserv; chmod +x mapserv isn't too helpful - apparently mapserv doesn't even attempt to read 
> the tif file), just a wrong result (1x1 png image). 
>  
> Am I overlooking anything obvious? 
>  
> Thanks, 
> Bernhard 
> ______________________________________________________________________________
> Die SMS direkt auf's Handy. - Die Blitz-SMS bei WEB.DE FreeMail
> http://freemail.web.de/features/?mc=021165
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 




More information about the mapserver-users mailing list