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
>
> 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
> gdal-dev@lists.osgeo.org
> 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
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[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 Antivirus, version of virus signature 
database 5356 (20100810) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev