[Mapserver-users] Raster layers are all gray

Ed McNierney ed at topozone.com
Tue Nov 11 13:08:57 EST 2003


Dan -

Frank's right, and your map request almost certainly does not intersect the defined image.  That's because your world file is wrong.

This seems to be a Microsoft TerraServer image download.  The first and fourth lines in the file seem to be plausible, if your data is 16 meters per pixel in UTM projection.  But the last two lines are certainly not UTM coordinates and appear to be decimal degrees of latitude and longitude.  You can't mix the two, and you need to correct your world file.

	- 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: Frank Warmerdam [mailto:warmerdam at pobox.com]
Sent: Tuesday, November 11, 2003 12:34 PM
To: Dan Harris; UMN MapServer
Subject: Re: [Mapserver-users] Raster layers are all gray


Dan Harris wrote:
> I have no idea what I'm doing wrong here or if this is a bug.  But, I'm 
> trying to display a raster on my map and I've tried it as 8-bit png, 
> jpeg, and tiff and it won't render properly.
> 
> It is the only layer in the map, so I don't think it's exhausting the 
> color palette.  I've tried reducing to 16 colors and it makes the output 
> image black instead of gray (is this a clue?).  So I can tell that 
> mapserver is rendering the entire output as the "median" color of the 
> raster image, but none of the details in the photo actually show up.
> 
> I would upgrade to 4.0, but it seems to not mesh with my older GD 
> libraries in Debian/stable.

Dan,

I'll take a quick look at your ortho file, but it would have been
helpful if you could have provided your whole mapfile, or at least a cutdown
simple one that reproduces the problem.  One obvious possibility is that
your map area might not intersect with the image's georeferenced area but
I can't check that without the map.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent


_______________________________________________
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