Jerl,<br><br>The contour attribute and the Z values are same here. Just one of them is enough.<br><br>With the Z values near the magnitude of 1000, the burn value of 255 is not going to make much of a difference. Use it if you want to offset any negative Z values.<br>
<br>You should mention contour.shp instead of just 'contour' for <src_datasource>.<br><br>Make sure BLANK.tif doesn't have different extents/projection.<br><br>Your final image will have a data type of Float64. You may have to run some contrast stretching operations on it.<br>
<br><div class="gmail_quote">On Tue, May 17, 2011 at 12:04 AM, Jerl Simpson <span dir="ltr"><<a href="mailto:jsimpson@wxtrends.com">jsimpson@wxtrends.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi guys and gals:<br>
<br>
I have something that's evading me. I have a basic ESRI Shape file<br>
(created using gdal_contour) that I run through gdal_rasterize to<br>
generate very nice looking contour map. But I want the value of the<br>
contour in there.<br>
<br>
I've been trying different things with the -a option, but I can't get<br>
it to work out.<br>
Here's the latest thing I've tried for gdal_rasterize:<br>
<br>
gdal_rasterize -a contour -3d -b 1 -b 2 -b 3 -b 4 -burn 255 -burn 255<br>
-burn 255 -burn 255 -burn 255 -l contour contour BLANK.tif<br>
<br>
I put an extra burn value in there (have also tried with out) to see<br>
if maybe it was just going in as 0. BLANK.tif is just a black image.<br>
I'm sure I'm missing something simple, just can't see it. I thought<br>
the -a would burn the value of "contour" into the raster.<br>
<br>
Thanks for any guidance!!<br>
<br>
Here's the data from my shapefile:<br>
<br>
INFO: Open of `contour/'<br>
using driver `ESRI Shapefile' successful.<br>
<br>
Layer name: contour<br>
Geometry: 3D Line String<br>
Feature Count: 157<br>
Extent: (-0.500000, -89.830132) - (359.500000, 89.144137)<br>
Layer SRS WKT:<br>
GEOGCS["GCS_WGS_1984",<br>
DATUM["WGS_1984",<br>
SPHEROID["WGS_1984",6378137,298.257223563]],<br>
PRIMEM["Greenwich",0],<br>
UNIT["Degree",0.017453292519943295]]<br>
ID: Integer (8.0)<br>
contour: Real (12.3)<br>
OGRFeature(contour):0<br>
ID (Integer) = 0<br>
contour (Real) = 1000.000<br>
LINESTRING (87.765060240963862 80.0 1000,.....<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><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>