Thanks a lor Even, I missed that line ;) Works perfectly with -amin / -amax
Giovanni Il giorno mar 15 ott 2019 alle ore 13:02 Even Rouault < even.roua...@spatialys.com> ha scritto: > On mardi 15 octobre 2019 12:57:16 CEST G. Allegri wrote: > > Dear list, > > I'm using gdal_contour with a single band (float) raster. It works as > > expected for the default linestring outputs but when I set the "-p" > option > > the attribute field is created but it's empty. > > > > This is the command I run: > > >gdal_contour -b 1 -a val -i 10.0 -p -f "ESRI Shapefile" > <raster_path>.tif > > > > <out_path>.shp > > > > Is this a known issue or am I doing something wrong? > > https://gdal.org/programs/gdal_contour.html : > > """ > > -a <name> > Provides a name for the attribute in which to put the elevation. If > not > provided no elevation attribute is attached. Ignored in polygonal > contouring > (-p) mode. > """ > > Use -amin / -amax > > Even > > -- > Spatialys - Geospatial professional services > http://www.spatialys.com >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev