<div dir="ltr">Thanks a lor Even, I missed that line ;)<div>Works perfectly with -amin / -amax</div><div><br></div><div>Giovanni</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 15 ott 2019 alle ore 13:02 Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On mardi 15 octobre 2019 12:57:16 CEST G. Allegri wrote:<br>
> Dear list,<br>
> I'm using gdal_contour with a single band (float) raster. It works as<br>
> expected for the default linestring outputs but when I set the "-p" option<br>
> the attribute field is created but it's empty.<br>
> <br>
> This is the command I run:<br>
> >gdal_contour -b 1 -a val -i 10.0 -p -f "ESRI Shapefile" <raster_path>.tif<br>
> <br>
> <out_path>.shp<br>
> <br>
> Is this a known issue or am I doing something wrong?<br>
<br>
<a href="https://gdal.org/programs/gdal_contour.html" rel="noreferrer" target="_blank">https://gdal.org/programs/gdal_contour.html</a> :<br>
<br>
"""<br>
<br>
-a <name><br>
    Provides a name for the attribute in which to put the elevation. If not <br>
provided no elevation attribute is attached. Ignored in polygonal contouring <br>
(-p) mode.<br>
"""<br>
<br>
Use -amin / -amax<br>
<br>
Even<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</blockquote></div>