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

Ed McNierney ed at topozone.com
Thu Mar 20 11:21:38 EST 2003


Bernhard -

First, please "Reply to all" on list messages so everyone can participate in the discussion.  The first person to reply to a message isn't always the right person to continue solving the problem.

The first thing you need to do is start generating PNG images that aren't all white.  That symptom means that you are correctly generating a map, but you are not requesting any data layers that are visible in the map area you request.

You need to get your georeference data sorted out.  Is your TIFF image a GeoTIFF with geographic reference info, or do you have a world (TFW or WLD) file for it?  You need to set an EXTENT in the MAP file or request it on the querystring to specify what area you need.

	- 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 11:17 AM
To: Ed McNierney
Subject: Re: [Mapserver-users] Problems getting mapserver to run w/
bitmap images


Hi, 
thanks for your fast reply - however, it doesn't fix the problem. 
I've debugged things a bit further: 
- A png file in the temp directory is actually generated, it's the correct size, but it's all white. 
- The size of the map window on the mapserver generated page is still 1x1 pixel. Pointing the browser at the 
generated PNG image gives the expected results (large all-white picture), so it's not a matter of the browser 
no supporting PNG or something. 
 
Any ideas? 
 
Thanks, 
Bernhard 
 
"Ed McNierney" <ed at topozone.com> schrieb am 20.03.03 17:00:46: 
>  
> 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 
 
______________________________________________________________________________
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