[mapserver-users] problem with raster
Jeff McKenna
jmckenna at gatewaygeomatics.com
Tue Aug 11 13:36:43 PDT 2009
Valeria Muñoz wrote:
> HI
>
> i am trying to display a raster image(.tif) but mapserver return the
> image attached
>
> mapfile
>
> MAP
> NAME satelite
> # Map image size
> SIZE 600 400
> UNITS dd
> EXTENT -70.524941 -33.366110 -70.500813 -33.346131
> PROJECTION
> 'proj=longlat'
> 'ellps=WGS84'
> 'datum=WGS84'
> 'no_defs'
> ''
> END
> IMAGECOLOR 192 192 192
> IMAGEQUALITY 95
> WEB
> IMAGEPATH '/tmp/'
> IMAGEURL '/tmp/'
> METADATA
> 'wms_title' 'satelit'
> 'wms_onlineresource'
> 'http://my.host.com/cgi-bin/mapserv?map=wms.map&
> <http://my.host.com/cgi-bin/mapserv?map=wms.map&>'
> 'wms_srs' 'EPSG:4326'
> END
> END
> LAYER
> NAME Mapa_WGS84'
> TYPE RASTER
> DATA 'data\image_1.tif'
> METADATA
> 'wms_title' Mapa_WGS84'
> END
> STATUS DEFAULT
> TRANSPARENCY 100
> PROJECTION
> 'proj=longlat'
> 'ellps=WGS84'
> 'datum=WGS84'
> 'no_defs'
> ''
> END
> END
> END
>
Hello,
My quick thoughts:
- remove all projection objects
- use the commandline gdalinfo utility to get the extents of your image
(Lower Left and Upper Right coordinates) and use those values in the
EXTENT parameter
- test your mapfile with the shp2img utility
(http://www.mapserver.org/utilities/shp2img.html)
-jeff
--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
More information about the MapServer-users
mailing list