<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi all,<br><br>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:<br><br>&lt;VRTDataset rasterXSize="720" rasterYSize="148"&gt;<br>&nbsp; &lt;SRS&gt;WGS84&lt;/SRS&gt;<br>&nbsp;&lt;GeoTransform&gt;-180, 0.5, 0.0,&nbsp; -37.0, 0.0, 0.5&lt;/GeoTransform&gt;<br>&nbsp; &lt;VRTRasterBand dataType="Byte" band="1"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;SimpleSource&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SourceFilename relativeToVRT="0"&gt;surfRainMean2.png&lt;/SourceFilename&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SrcRect xOff="0" yOff="0" xSize="720" ySize="148"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DstRect xOff="0" yOff="0" xSize="720" ySize="148"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/SimpleSource&gt;<br>&nbsp; &lt;/VRTRasterBand&gt;<br>&lt;/VRTDataset&gt;<br><br><br>But the MapServer outputs a total black image if output format is png, and outputs a black-white image if output format is gif.&nbsp; What should I do?<br><br>Thanks.<br><br>Peisheng <br><br /><hr />Access your email online and on the go with Windows Live Hotmail. <a href='http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_access_112008' target='_new'>Sign up today.</a></body>
</html>