[gdal-dev] trying to fetch the data from raster and assign it to the polygon attribute
Kyle Shannon
kyle at pobox.com
Mon Oct 29 15:42:55 PDT 2012
You can specify the fieldname after the layername, see the documentation:
http://gdal.org/gdal_polygonize.html
gdal_polygonize.py [-8] [-nomask] [-mask filename] raster_file [-b band]
[-q] [-f ogr_format] out_file [layer] [fieldname]
kss
On Mon, Oct 29, 2012 at 4:10 PM, Smaran Harihar <smaran.harihar at gmail.com>wrote:
> Hi,
>
> I am a newbie in GDAL and I recently used gdal_polygonize to convert a
> raster (Tiff) to polygon. The problem is that I wish to also assign the
> pixel values to the attribute table of the polygon.
>
> Is it possible? When I converted the raster into polygon, I was only able
> to see DN as another field and it does not have the desired value as
> displayed in the pixel value.
>
> --
> Thanks & Regards
> Smaran Harihar
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121029/c9ed75c5/attachment.html>
More information about the gdal-dev
mailing list