Re: [gdal-dev] having problem with polygonize

2014-06-28 Thread devendra dahal
That's it. I was not closing dst_ds, I was closing only newArray. Thank you Even. You are wonderful. On Sat, Jun 28, 2014 at 3:14 PM, Even Rouault wrote: > Le samedi 28 juin 2014 22:05:54, devendra dahal a écrit : > > Thank you David and Even. > > > > I really apreciate your suggestions. > >

Re: [gdal-dev] having problem with polygonize

2014-06-28 Thread Even Rouault
Le samedi 28 juin 2014 22:05:54, devendra dahal a écrit : > Thank you David and Even. > > I really apreciate your suggestions. > > Even's suggestion of including quotation did help running the script > without problem. As you suggested I replaced the os.system with > subprocess.call. But still th

Re: [gdal-dev] having problem with polygonize

2014-06-28 Thread devendra dahal
Thank you David and Even. I really apreciate your suggestions. Even's suggestion of including quotation did help running the script without problem. As you suggested I replaced the os.system with subprocess.call. But still the shapefile has just one polygon with zero value and it does not have th

Re: [gdal-dev] having problem with polygonize

2014-06-27 Thread Even Rouault
Le samedi 28 juin 2014 05:26:00, devendra dahal a écrit : > Dear All; > > I have some annual landcovder raster datasets (preciously 20) with 7 > different types. > Since the datasets covers large area and I just want to see trends of some > wetlands area changes over the year. I planned to subset

Re: [gdal-dev] having problem with polygonize

2014-06-27 Thread David Strip
On 6/27/2014 9:26 PM, devendra dahal wrote: file1 = "my_raster.tif" OutFile = "wetlands.tif" rastDriver = gdal.GetDriverByName('Gtiff') # reading gdal driver  rastDriver.Register()

[gdal-dev] having problem with polygonize

2014-06-27 Thread devendra dahal
Dear All; I have some annual landcovder raster datasets (preciously 20) with 7 different types. Since the datasets covers large area and I just want to see trends of some wetlands area changes over the year. I planned to subset the wetlands from the dataset. Then using polygonize.py to convert the