Re: [gdal-dev] Re: reg GDALPolygonize

2009-11-18 Thread Srikanth
Thanks for the mail Alan. I am programming it in Cpp and using Qt architechture . I will try with a new raster band and try to make it as a mask with forecfully assiging a value to it. data = (uchar *) CPLMalloc(sizeof(uchar)*width*height*bytesPerPixel); poBandR->RasterIO(GF_Read, xOff, yO

[gdal-dev] Re: reg GDALPolygonize

2009-11-18 Thread Srikanth
Hi , I have found the solution myself. Below is the piece of code for polygonizing the raster. Yet there is another problem i am facing. I am unable to create a mask band for a particular pixel value.I understand that could be done using thresholding. But I did not find any method for that in GDA