<div dir="ltr">KC,<div>I looked into this a few years ago, so things may have changed. A write-up of what I did with both kmz and pdf is at <a href="https://geozoneblog.wordpress.com/2021/12/09/dav-new-products/">https://geozoneblog.wordpress.com/2021/12/09/dav-new-products/</a> with the details toward the bottom. It might be that you'd need to add a layer to the kmz with a point and label where you want them.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">Kirk Waters, PhD </font></div><div><font face="arial, helvetica, sans-serif">NOAA Office for Coastal Management<br></font></div><div><font face="arial, helvetica, sans-serif">Applied Sciences Program      </font></div><div><div><font face="arial, helvetica, sans-serif"><a href="http://coast.noaa.gov/digitalcoast" target="_blank">coast.noaa.gov/digitalcoast</a></font></div></div><div><br></div><div><br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 18, 2024 at 11:50 AM Open Land LLC via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Everyone,<div><br></div><div>I just wanted to ask - Is this the right place to post questions? I put in a post several days ago, and just want to make sure I'm putting it in the right place, because I have not posted to this group before. Thank you - KC <br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Open Land LLC</strong> <span dir="auto"><<a href="mailto:realoption11@gmail.com" target="_blank">realoption11@gmail.com</a>></span><br>Date: Mon, Jul 15, 2024 at 9:00 PM<br>Subject: How to add labels to DEM contour lines<br>To:  <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br></div><br><br><div dir="ltr"><div>Hi everyone, this is my first post. I've also posted this to <a href="https://stackoverflow.com/questions/78751101/labelling-contour-lines-with-ogr-style" target="_blank">https://stackoverflow.com/questions/78751101/labelling-contour-lines-with-ogr-style</a></div><div><br></div>I'm trying to add labels to DEM contour lines.<br><br>I'm working with GDAL 3.6.2. , which I installed using Anaconda . I have some DEM data from USGS which I wrote as a contour map to a KML file using:<br><br>    gdal_contour small.tif /home/ubuntu/node/geotools/contour.kml -i 3.0 -f KML -a ELEVATION<br><br>When I open contour.kml in vim, I can see that its made up of features like:<br><br> <Placemark><br>             <Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style><br>                <ExtendedData><SchemaData schemaUrl="#contour"><br>                 <SimpleData name="ID">39</SimpleData><br>                   <SimpleData name="ELEVATION">525</SimpleData><br>           </SchemaData></ExtendedData><br>              <LineString><coordinates>-89.2626638689733,46.1525006611575 -89.262663868958,46.1525469572921 -89.2627325352002,46.152622208059 -89.2628251277396,46.1526266807347 -89.2629177202847,46.1526141000471 -89.2629982621728,46.1525469573863 -89.2629982621882,46.1525006612516</coordinates></LineString><br>        </Placemark><br><br>Clearly there is a style component available , but I'm not sure how to work with it to add elevation labels or custom colours. My suspicion is that OGR_STYLE is used to do things like this (<a href="https://github.com/OSGeo/gdal/issues/835)(https://gdal.org/user/ogr_sql_dialect.html#ogr-style" target="_blank">https://github.com/OSGeo/gdal/issues/835)(https://gdal.org/user/ogr_sql_dialect.html#ogr-style</a>     ), but I can't find any examples. How can this be done?<div><br></div><div>Thank you very much,</div><div><br></div><div>KC<br>         <br></div></div>
</div></div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>