Andrew,<br><br>I believe your syntax is incorrect.&nbsp; Assuming that you are trying to exclude water from your image, it should be something like this:<br>% gdal_rasterize -b 1 -b 2 -b 3 -i -burn 0 -burn 0 -burn 0 -l gshhs_land gshhs_land.shp warped.tif<br>
<br>Have a look at <a href="http://www.gdal.org/gdal_rasterize.html">http://www.gdal.org/gdal_rasterize.html</a> for a list of all the options.<br><br>Roger<br>--<br><br><br><br><br><br><div class="gmail_quote">On Mon, Nov 10, 2008 at 11:11 AM, Andrew Brooks <span dir="ltr">&lt;<a href="mailto:arb@sat.dundee.ac.uk">arb@sat.dundee.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello<br>
<br>
I&#39;m trying to overlay coastlines on an image using gdal_rasterize but<br>
can&#39;t get it to do anything at all.<br>
<br>
% gdal_rasterize gshhs_land.shp warped.tif<br>
Usage: gdal_rasterize [-b band] [-i]<br>
 &nbsp; &nbsp; &nbsp; [-burn value] | [-a attribute_name] | [-3d]<br>
 &nbsp; &nbsp; &nbsp; [-l layername]* [-where expression] [-sql select_statement]<br>
 &nbsp; &nbsp; &nbsp; &lt;src_datasource&gt; &lt;dst_filename&gt;<br>
<br>
The files are ok:<br>
<br>
% ogrinfo gshhs_land.shp<br>
INFO: Open of `gshhs_land.shp&#39; &nbsp;using driver `ESRI Shapefile&#39; successful.<br>
1: gshhs_land (Polygon)<br>
<br>
% gdalinfo warped.tif<br>
Driver: GTiff/GeoTIFF<br>
Size is 396, 396<br>
Coordinate System is: PROJCS[&quot;OSGB 1936 / British National Grid&quot;, ...<br>
Band 1 Block=396x10 Type=UInt16, ColorInterp=Gray<br>
<br>
Andrew<br>
<br>
P.S. Unrelated to this problem there&#39;s also another problem:<br>
<br>
% gdal_rasterize -l gshhs_land gshhs_land.shp warped.tif<br>
To many of -3d, -burn and -a specified.<br>
<br>
&quot;To&quot; should be &quot;Too&quot;, but since I&#39;ve not specified any of -3d,<br>
-burn or -a then I&#39;m not sure what it&#39;s complaining about...<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>