[gdal-dev] reg GDALPolygonize
srikanth1947 at gmail.com
Mon Nov 16 04:57:08 EST 2009
Dear All ,
I am trying to convert a raster to vector using GDALPolygonize function .
Below is the code I am using
String pszFilename = "C:\\Images\\image.tiff";
poDataset = (GDALDataset *) GDALOpen( pszFilename , GA_ReadOnly );
poBandR = poDataset->GetRasterBand(1);
GDALPolygonize(poBandR , NULL , poLayer ,1,NULL,NULL,NULL);
The process is crashed in the polygonize function. I wonder what might be
wrong with the above. (or should I assign memory to OGRLayer ?)
Any suggestions/examples regarding the same are appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev