[mapserver-users] problem with raster
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Tue Aug 11 20:49:09 PDT 2009
Hi,
Image seems to show just your background colour. I guess that either Mapserver cannot find your image or the extents of the request do no hit the image extenst. Try to give absolute path to your image at 'data\La_Dehesa_1_Mapa_WGS84.tif'. Other suggestions is to add MS_ERRORFILE on map level and DEBUG 5 on layer level to your mapfile and see from the log what happens.
What client do you use as a client and what does the request look like?
-Jukka Rahkonen-
-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users-bounces at lists.osgeo.org puolesta: Valeria Muñoz
Lähetetty: ti 11.8.2009 23:49
Vastaanottaja: Jeff McKenna
Kopio: mapserver-users
Aihe: Re: [mapserver-users] problem with raster
Hi Jeff
i removed projections objects, i use QGIS to get the extent parameter, but
the result is the same
new mapfile
MAP
NAME satelite
SIZE 600 400
UNITS dd
EXTENT -70.524941 -33.366110 -70.500813 -33.346131
IMAGECOLOR 192 192 192
IMAGEQUALITY 95
WEB
IMAGEPATH '/tmp/'
IMAGEURL '/tmp/'
METADATA
'wms_title' 'satelite'
'wms_onlineresource' 'http://my.host.com/cgi-bin/mapserv?map=wms.map&
'
'wms_srs' 'EPSG:4326'
END
END
LAYER
NAME 'La_Dehesa_1_Mapa_WGS84'
TYPE RASTER
DATA 'data\La_Dehesa_1_Mapa_WGS84.tif'
METADATA
'wms_title' 'La_Dehesa_1_Mapa_WGS84'
END
STATUS DEFAULT
TRANSPARENCY 100
END
END
RG
2009/8/11 Jeff McKenna <jmckenna at gatewaygeomatics.com>
> 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/
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list