[mapserver-users] png files with bbox

zhao peisheng zhaops at hotmail.com
Wed Nov 19 15:39:03 EST 2008


Hi all,

I have some PNG files with bounding box. I am willing to publish them using MapServer WMS. I use the vrt file to specify geolocation like this:

<VRTDataset rasterXSize="720" rasterYSize="148">
  <SRS>WGS84</SRS>
 <GeoTransform>-180, 0.5, 0.0,  -37.0, 0.0, 0.5</GeoTransform>
  <VRTRasterBand dataType="Byte" band="1">
    <SimpleSource>
      <SourceFilename relativeToVRT="0">surfRainMean2.png</SourceFilename>
       <SrcRect xOff="0" yOff="0" xSize="720" ySize="148"/>
       <DstRect xOff="0" yOff="0" xSize="720" ySize="148"/>
    </SimpleSource>
  </VRTRasterBand>
</VRTDataset>


But the MapServer outputs a total black image if output format is png, and outputs a black-white image if output format is gif.  What should I do?

Thanks.

Peisheng 

_________________________________________________________________
Access your email online and on the go with Windows Live Hotmail.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_access_112008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081119/7b0b9b0b/attachment.html


More information about the mapserver-users mailing list