[Gdal-dev] Python and GDAL drivers
Ivan Lucena
ILucena at clarku.edu
Thu May 18 15:05:05 EDT 2006
Hi there,
Is there any reason for not getting the same list of drivers from the
python extension as from the API or gdalinfo?
>From Python I got 50 drivers:
> import gdal
> gdal.AllRegister()
> for i in range(1, gdal.GetDriverCount()):
... drv = gdal.GetDriver(i)
... drv.GetDescription()
'GTiff'
'NITF'
...
>From gdalInfo I got 53:
> gdalinfo --formats
VRT (rw+): Virtual Raster
GTiff (rw+): GeoTIFF
NITF (rw+): National Imagery Transmission Format
...
I also got the 53s when accessing GDAL through the API.
So "RST" for example, is not available through python:
> ds = gdal.Open('....rst')
> print ds
None
>
Do I need to re-run the swig wrappers? How?
Thanks in advance,
Ivan Lucena
More information about the Gdal-dev
mailing list