Hi All,<div><br></div><div>I just noted that the version of gdal_rasterize packaged with FWTools 2.4.7 does not support raster creation. Please ignore my previous email.</div><div><br></div><div>Thanks,</div><div><br></div>

<div>Chetan<br><br><div class="gmail_quote">On Sat, Jul 28, 2012 at 5:55 PM, Chetan Tiwari <span dir="ltr">&lt;<a href="mailto:chetan.tiwari@gmail.com" target="_blank">chetan.tiwari@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Dear List Members,<div><br></div><div>I was having trouble executing gdal_rasterize and was hoping to get some advice from other members of the list. I&#39;ve spent the better part of the afternoon trying to figure this out, but have been unsuccessful. Here are the details:</div>



<div><br></div><div>I am trying to convert a polygon shapefile to a raster. The shapefile was originally a table in PostGIS that was converted to a shapefile using ogr2ogr. I am able to successfully load the shapefile in QGIS and I am also able to convert this shapefile to a raster layer using the GDAL tools menu. However, I have several such files (and several other preceding steps), so I&#39;ve written a simple script that executes the appropriate command (gdal_rasterize) with the required parameters on the command line. I constructed the command line version of this conversion process using information from QGIS. My command for this operation is as follows:</div>



<div><br></div><div><div>F:\&gt;&quot;c:\Program Files (x86)\FWTools2.4.7\bin\gdal_rasterize.exe&quot; -a count -l cty_u_d -ts 3000 3000 &quot;f:\temp\cty_u_d.shp&quot; &quot;f:\temp\raster.tif&quot;</div></div><div><br>


</div>
<div>where count is an integer attribute in the shapefile called cty_u_d. When I run this command, all I get is the usage information. No files are created. Please note that I am able to successfully convert the same file into a raster using QGIS (and on the same machine running Windows 7, QGIS 1.8.1, and FWTools 2.4.7). Any help or suggestions would be most appreciated.</div>



<div><br></div><div>Thanks and regards,</div><div><br></div><div>Chetan</div><div><br></div><div><br></div><div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Chetan Tiwari, PhD<br>Assistant Professor<br>University of North Texas<br>Department of Geography<br>1155 Union Circle #305279<br>Denton, TX 76203-5017<br>
</div>