[mapserver-users] problem with raster

Valeria Muñoz valemunoz at gmail.com
Tue Aug 11 16:49:59 EDT 2009


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090811/2e50cec9/attachment-0001.html


More information about the mapserver-users mailing list