Hi Jerl,<br><br> If you have python with matplotlib and the gdal bindings installed, you can use gdal to read the DEM (which I assume you are getting gdal_contour to draw contours from), and then matplotlibs contour-function to draw the labelled contours. You can draw on top of an imported map/image-file. I know that matplotlib will read at least png's, and I think also other image formats (with the right packages installed).<br>
<br> Cheers,<br> Simon<br><br><br><div class="gmail_quote">On Mon, May 16, 2011 at 10:08 PM, Jerl Simpson <span dir="ltr"><<a href="mailto:jsimpson@wxtrends.com">jsimpson@wxtrends.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Ok, thank you.<br>
<br>
Does anyone else have any suggestions?<br>
<br>
<br>
<br>
On Mon, May 16, 2011 at 3:06 PM, Chaitanya kumar CH<br>
<div><div></div><div class="h5"><<a href="http://chaitanya.ch" target="_blank">chaitanya.ch</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>> wrote:<br>
> Jerl,<br>
><br>
> I'm afraid gdal_rasterize can't do the labelling. You will need a<br>
> specialized renderer for that. I'm not familiar with any of the desktop<br>
> applications that do this. Perhaps, qgis has a plugin.<br>
><br>
> On Tue, May 17, 2011 at 1:30 AM, Jerl Simpson <<a href="mailto:jsimpson@wxtrends.com">jsimpson@wxtrends.com</a>> wrote:<br>
>><br>
>> I already have the resultant image, it looks great. Just drawing<br>
>> lines on a map. I'm using a blank image so I can more clearly see<br>
>> what's going on. It's just a black and white image, and that's all I<br>
>> want.<br>
>> I'm trying to get the contour labeled, so I know which one I'm<br>
>> viewing. So on the 1000 contour, I should see 1000 on the line<br>
>> somewhere, and if it's a 547 contour, I should see 547 on the line<br>
>> somewhere.<br>
>><br>
>> Is that possible?<br>
>><br>
>> Thanks,<br>
>><br>
>> Jerl<br>
>><br>
>> On Mon, May 16, 2011 at 2:41 PM, Chaitanya kumar CH<br>
>> <<a href="http://chaitanya.ch" target="_blank">chaitanya.ch</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>> wrote:<br>
>> > Jerl,<br>
>> ><br>
>> > The contour attribute and the Z values are same here. Just one of them<br>
>> > is<br>
>> > enough.<br>
>> ><br>
>> > With the Z values near the magnitude of 1000, the burn value of 255 is<br>
>> > not<br>
>> > going to make much of a difference. Use it if you want to offset any<br>
>> > negative Z values.<br>
>> ><br>
>> > You should mention contour.shp instead of just 'contour' for<br>
>> > <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<br>
>> > some<br>
>> > contrast stretching operations on it.<br>
>> ><br>
>> > On Tue, May 17, 2011 at 12:04 AM, Jerl Simpson <<a href="mailto:jsimpson@wxtrends.com">jsimpson@wxtrends.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> 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>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Best regards,<br>
>> > Chaitanya kumar CH.<br>
>> > /tʃaɪθənjə/ /kʊmɑr/<br>
>> > <a href="tel:%2B91-9494447584" value="+919494447584">+91-9494447584</a><br>
>> > 17.2416N 80.1426E<br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> This communication is privileged and may contain confidential<br>
>> information. It's intended only for the use of the person or entity<br>
>> named above. If you are not the intended recipient, do not distribute<br>
>> or copy this communication. If you have received this communication in<br>
>> error, please notify the sender immediately and return the original to<br>
>> the email address above. © Copyright 2011 Weather Trends<br>
>> International, Inc.<br>
><br>
><br>
><br>
> --<br>
> Best regards,<br>
> Chaitanya kumar CH.<br>
> /tʃaɪθənjə/ /kʊmɑr/<br>
> <a href="tel:%2B91-9494447584" value="+919494447584">+91-9494447584</a><br>
> 17.2416N 80.1426E<br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<div class="im">This communication is privileged and may contain confidential<br>
information. It's intended only for the use of the person or entity<br>
named above. If you are not the intended recipient, do not distribute<br>
or copy this communication. If you have received this communication in<br>
error, please notify the sender immediately and return the original to<br>
the email address above. © Copyright 2011 Weather Trends<br>
International, Inc.<br>
</div><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>