Nicholas,<br><br>You can use the gdal_polygonize.py script [1] to do this. You might also want to go through the documentation for GDALPolygonize() function[2]. If your raster is non-thematic, your vector dataset could get too big. ESRI Shapefile format has a file size limit of 4GB.<br>
<br>[1]: <a href="http://www.gdal.org/gdal_polygonize.html">http://www.gdal.org/gdal_polygonize.html</a><br>[2]: <a href="http://www.gdal.org/gdal__alg_8h.html#3f522a9035d3512b5d414fb4752671b1">http://www.gdal.org/gdal__alg_8h.html#3f522a9035d3512b5d414fb4752671b1</a><br>
<br><div class="gmail_quote">On Mon, Jul 4, 2011 at 10:05 AM,  <span dir="ltr">&lt;<a href="mailto:nicholas.g.lawrence@tmr.qld.gov.au">nicholas.g.lawrence@tmr.qld.gov.au</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;">
<div>
<p><font face="sans-serif" size="2">Hello,</font><br>
<br>
<font face="sans-serif" size="2">I have a one-and-a-half gigabyte ermapper .ers file, that has one band, with values of 0 to 7 (integers only).</font><br>
<br>
<font face="sans-serif" size="2">I would like to turn this into vector polygons, such as a shapefile or mapinfo table.</font><br>
<br>
<font face="sans-serif" size="2">Can I do this with GDAL?<br>
</font><font face="Arial" size="2"><br>
Kind regards,</font><br>
<font face="Arial" size="1"><br>
</font><font face="Arial" size="1"><b><br>
Nicholas Lawrence</b></font><font color="#1037cc" face="Arial" size="1"><br>
Senior Spatial Science Officer</font><font face="Arial" size="1"> | Darling Downs Region / Toowoomba Office</font><font face="Arial" size="1"><b><br>
Assets &amp; Operations</b></font><font face="Arial" size="1"> Division | Department of Transport and Main Roads</font></p><hr style="color: rgb(16, 55, 204);" size="3" width="100%" align="left"><br>
<font color="#8d8d8d" face="Arial" size="1">Floor 1 | Toowoomba - Phillip Street | 1-5 Phillip Street (cnr Clopton Street) | Toowoomba Qld 4350<br>
PO Box 645 | Toowoomba Qld 4350</font><font color="#1037cc" face="Arial" size="1"><br>
P:</font><font color="#8d8d8d" face="Arial" size="1"> (07) 46390764 | </font><font color="#1037cc" face="Arial" size="1">F:</font><font color="#8d8d8d" face="Arial" size="1"> (07) 46390750</font><font color="#1037cc" face="Arial" size="1"><br>

E:</font><font color="#8d8d8d" face="Arial" size="1"> <a href="mailto:nicholas.g.lawrence@tmr.qld.gov.au" target="_blank">nicholas.g.lawrence@tmr.qld.gov.au</a></font><font color="#1037cc" face="Arial" size="1"><br>
W:</font><font color="#8d8d8d" face="Arial" size="1"> <a href="http://www.tmr.qld.gov.au" target="_blank">www.tmr.qld.gov.au</a></font><font face="Arial" size="1"><b><br>
Tomorrow&#39;s Queensland: strong, green, smart, healthy and fair – <a href="http://www.towardQ2.qld.gov.au" target="_blank">www.towardQ2.qld.gov.au</a></b></font><font color="#008000" face="Webdings" size="3"><br>
P</font><font color="#ffffff" face="Webdings" size="1">|</font><font color="#008000" face="Verdana" size="1"> Please consider the environment before printing this email</font><font color="#8d8d8d" face="Arial" size="1"><br>

</font>
<p><span style="font-family: &#39;Arial&#39;; font-size: 8pt;">***********************************************************************<br>
WARNING: This email (including any attachments) may contain legally<br>
privileged, confidential or private information and may be protected by<br>
copyright. You may only use it if you are the person(s) it was<br>
intended to be sent to and if you use it in an authorised way. No one<br>
is allowed to use, review, alter, transmit, disclose, distribute, print<br>
or copy this email without appropriate authority.<br>
<br>
If this email was not intended for you and was sent to you by mistake,<br>
please telephone or email me immediately, destroy any hardcopies of<br>
this email and delete it and any copies of it from your computer<br>
system. Any right which the sender may have under copyright law, and <br>
any legal privilege and confidentiality attached to this email is not<br>
waived or destroyed by that mistake.<br>
</span></p>
<p><span style="font-family: &#39;Arial&#39;; font-size: 8pt;">It is your responsibility to ensure that this email does not contain <br>
and is not affected by computer viruses, defects or interference by <br>
third parties or replication problems (including incompatibility with<br>
your computer system).<br>
<br>
Opinions contained in this email do not necessarily reflect the<br>
opinions of the Department of Transport and Main Roads,<br>
Maritime Safety Queensland or endorsed organisations utilising<br>
the same infrastructure.<br>
***********************************************************************</span></p>
<p><span style="font-family: &#39;Arial&#39;; font-size: 8pt;"> </span></p></div><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></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>