[gdal-dev] Python documentation help

Howard Butler hobu.inc at gmail.com
Wed Dec 5 19:31:04 EST 2007


On Dec 5, 2007, at 4:51 PM, Lucena, Ivan wrote:

> Howard,
>
> It's all perfect now. I am glad to help.
>
> >>> import gdal
> C:\Program Files\Python24\lib\site-packages\osgeo\gdal.py:90:  
> DeprecationWarning: gdal.py was placed in a namespace, it is now  
> available as osgeo.gdal
>  DeprecationWarning)
> >>> gdal.AllRegister()
> >>> _
>
> It warns and works!
>
> >>> from osgeo import gdal
> >>> gdal.AllRegister()
> >>> _

gdal.AllRegister() (or ogr.AllRegister()) should not be required  
anymore, and it will be taken care of by the import for you.

Howard


More information about the gdal-dev mailing list