<div><font><font face="courier new,monospace">You can specify the fieldname after the layername, see the documentation:<br></font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace"><a href="http://gdal.org/gdal_polygonize.html" target="_blank">http://gdal.org/gdal_polygonize.html</a><br>


</font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">gdal_polygonize.py [-8] [-nomask] [-mask filename] raster_file [-b band]<br>                [-q] [-f ogr_format] out_file [layer] [fieldname]</font></font></div>


<div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">kss<br></font></font></div><br><div class="gmail_quote">On Mon, Oct 29, 2012 at 4:10 PM, Smaran Harihar <span dir="ltr"><<a href="mailto:smaran.harihar@gmail.com" target="_blank">smaran.harihar@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>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.</div>




<div><br></div><div>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.</div><span><font color="#888888"><div>


<div><br></div>-- <br>

Thanks & Regards<div>Smaran Harihar</div><br>
</div>
</font></span><br>_______________________________________________<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="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br>