[gdal-dev] Polygonize: are these steps the right ones?

2010-03-11 Thread Jorge Arevalo
Hi, I'm using GDALPolygonize to polygonize a dataset with one band created using MEM driver: memdataset = GDALCreate(GDALGetDriverByName("MEM"),"", width, height, 0, GDT_Byte, NULL); GDALAddBand(memdataset, nPixelType, apszOptions); // in apszOptions[0] there are the band data Then, I create a M

Re: [gdal-dev] Polygonize: are these steps the right ones?

2010-03-12 Thread Ari Jolma
I should have sent this to the list and not just Jorge. Anyway, the problem is solved. Jorge Arevalo kirjoitti: The problem is that the MEM-based layer doesn't have fields. So, if I use "0" as iPixValField, I get an error, because there's no field with index 0 in the Feature. Of course, the sam

Re: [gdal-dev] Polygonize: are these steps the right ones?

2010-03-12 Thread Jorge Arevalo
On Fri, Mar 12, 2010 at 1:54 PM, Ari Jolma wrote: > I should have sent this to the list and not just Jorge. Anyway, the problem > is solved. > > Jorge Arevalo kirjoitti: >> >> The problem is that the MEM-based layer doesn't have fields. So, if I >> use "0" as iPixValField, I get an error, because