John,<br><br>gdal_polygonize script stores the common pixel value in a field for every polygon. By default it is named &#39;DN&#39;, which can be changed by specifying the fieldname option.<br><br>You must use the alpha channel to polygonize. So you have to use the -b option to specify that and may have to use the -nomask option too.<br>
<br><div class="gmail_quote">On Tue, Jul 26, 2011 at 9:21 AM, jt2000 <span dir="ltr">&lt;<a href="mailto:thakkar@nexgenwireless.com">thakkar@nexgenwireless.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks Jay,<br>
<br>
Ideally I would like the data to be in a column of the shapefile output so I<br>
can load it in the database and use it to query.  With gdal_polygonize.py<br>
this doesn&#39;t seem possible so I was wondering what other options are out<br>
there.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/preserving-alpha-channel-data-with-gdal-transform-py-tp6620877p6620923.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/preserving-alpha-channel-data-with-gdal-transform-py-tp6620877p6620923.html</a><br>

Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">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>
</font></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>