Nicholas, 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.
[1]: http://www.gdal.org/gdal_polygonize.html [2]: http://www.gdal.org/gdal__alg_8h.html#3f522a9035d3512b5d414fb4752671b1 On Mon, Jul 4, 2011 at 10:05 AM, <nicholas.g.lawre...@tmr.qld.gov.au> wrote: > Hello, > > I have a one-and-a-half gigabyte ermapper .ers file, that has one band, > with values of 0 to 7 (integers only). > > I would like to turn this into vector polygons, such as a shapefile or > mapinfo table. > > Can I do this with GDAL? > > Kind regards, > > * > Nicholas Lawrence* > Senior Spatial Science Officer | Darling Downs Region / Toowoomba Office* > Assets & Operations* Division | Department of Transport and Main Roads > ------------------------------ > > Floor 1 | Toowoomba - Phillip Street | 1-5 Phillip Street (cnr Clopton > Street) | Toowoomba Qld 4350 > PO Box 645 | Toowoomba Qld 4350 > P: (07) 46390764 | F: (07) 46390750 > E: nicholas.g.lawre...@tmr.qld.gov.au > W: www.tmr.qld.gov.au* > Tomorrow's Queensland: strong, green, smart, healthy and fair – > www.towardQ2.qld.gov.au* > P| Please consider the environment before printing this email > > *********************************************************************** > WARNING: This email (including any attachments) may contain legally > privileged, confidential or private information and may be protected by > copyright. You may only use it if you are the person(s) it was > intended to be sent to and if you use it in an authorised way. No one > is allowed to use, review, alter, transmit, disclose, distribute, print > or copy this email without appropriate authority. > > If this email was not intended for you and was sent to you by mistake, > please telephone or email me immediately, destroy any hardcopies of > this email and delete it and any copies of it from your computer > system. Any right which the sender may have under copyright law, and > any legal privilege and confidentiality attached to this email is not > waived or destroyed by that mistake. > > It is your responsibility to ensure that this email does not contain > and is not affected by computer viruses, defects or interference by > third parties or replication problems (including incompatibility with > your computer system). > > Opinions contained in this email do not necessarily reflect the > opinions of the Department of Transport and Main Roads, > Maritime Safety Queensland or endorsed organisations utilising > the same infrastructure. > *********************************************************************** > > > > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- Best regards, Chaitanya kumar CH. /tʃaɪθənjə/ /kʊmɑr/ +91-9494447584 17.2416N 80.1426E
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev