[gdal-dev] Retrieve number of layers with gdalpy

2010-08-11 Thread António Rocha
Greetings I have a file Geotiff format (and other in GRIB) and I need to know how many layers of data I have in each one of them by using gdalPy. is it possible? (I don't want to use gdalinfo , I just want to get this value directly) Thanks Antonio __ Information from ESET NOD32 An

Re: [gdal-dev] Retrieve number of layers with gdalpy

2010-08-11 Thread Chaitanya kumar CH
António, GDALDataset::GetRasterCount doesn't have the same interface in Python. You can get the value using the GDALDataset's member variable RasterCount in Python. Example: http://trac.osgeo.org/gdal/browser/trunk/autotest/gcore/tiff_write.py?rev=19928#L764 2010/8/11 António Rocha > Greetings