[gdal-dev] gdal_rasterize usage problems

Andrew Brooks arb at sat.dundee.ac.uk
Mon Nov 10 14:11:04 EST 2008


Hello

I'm trying to overlay coastlines on an image using gdal_rasterize but
can't get it to do anything at all.

% gdal_rasterize gshhs_land.shp warped.tif
Usage: gdal_rasterize [-b band] [-i]
       [-burn value] | [-a attribute_name] | [-3d]
       [-l layername]* [-where expression] [-sql select_statement]
       <src_datasource> <dst_filename>

The files are ok:

% ogrinfo gshhs_land.shp
INFO: Open of `gshhs_land.shp'  using driver `ESRI Shapefile' successful.
1: gshhs_land (Polygon)

% gdalinfo warped.tif
Driver: GTiff/GeoTIFF
Size is 396, 396
Coordinate System is: PROJCS["OSGB 1936 / British National Grid", ...
Band 1 Block=396x10 Type=UInt16, ColorInterp=Gray

Andrew

P.S. Unrelated to this problem there's also another problem:

% gdal_rasterize -l gshhs_land gshhs_land.shp warped.tif
To many of -3d, -burn and -a specified.

"To" should be "Too", but since I've not specified any of -3d,
-burn or -a then I'm not sure what it's complaining about...



More information about the gdal-dev mailing list