Problem with raster layer

Frank Warmerdam warmerdam at POBOX.COM
Wed Jan 17 13:53:00 EST 2007


Cristhiano Vasconcellos wrote:
> Hi everybody!
> Could someone help me!
> 
> Mapserver is not rendering the raster layer, the others are OK. I´ve 
> tried several ways to resolve this, but nothing.
> The file sint_123.png is associated with sint_123.wld (georreference).
> 
> The sint_123.wld is like this:
> 
> 30
> 0.0000000000
> 0.0000000000
> -30
> -54.126061
> -29.600353
> 
> 
> 
> The mapfile is like this:
> 
> MAP
>   NAME "ufsm"
>   EXTENT -57.643316 -33.751583 -49.691142 -27.080114

Cristhiano,

Note that your world file indicates a pixel size of 30 degrees by
30 degrees, so your map extent is covered by a fraction of the first
pixel.

If you mean the pixels to be 30 meters by 30 meters you could try replacing
30 and -30 with 0.00027 and -0.00027 and see if it is roughly right.  But
you should likely review exactly where you think this raster file is in the
world.

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    | President OSGeo, http://osgeo.org



More information about the mapserver-users mailing list