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 <[email protected]> > 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 Antivirus, version of virus > signature database 5356 (20100810) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- Best regards, Chaitanya kumar CH. /tʃaɪθənjə/ /kʊmɑr/ +91-9494447584 17.2416N 80.1426E
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
