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

Ed McNierney ed at topozone.com
Thu Mar 20 11:00:41 EST 2003


Bernhard -

You need to set STATUS DEFAULT to make the layer turn on automatically.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 

-----Original Message-----
From: "Bernhard Rosenkränzer" [mailto:bero.rh at web.de]
Sent: Thursday, March 20, 2003 9:31 AM
To: Mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Problems getting mapserver to run w/ bitmap
images


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