[Mapserver-users] Problems getting mapserver to run w/ bitmap images
Bernhard Rosenkränzer
bero.rh at web.de
Thu Mar 20 06:30:52 PST 2003
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
More information about the MapServer-users
mailing list