The version of gdal has change the reference of core function method like , from `import gdal`to
python
from osgeo import gdal
from osgeo import ogr
from osgeo import osr
from osgeo import gdal_array
from osgeo import gdalconst
the new version has upload to pypi . Obviously, the China mainland user may can't achieve the google map server.
The recommend way is 'BIng Virture Earth' like:
bash
>>> from darth.downloader import downloader
>>> Bing=downloader("Bing VirtualEarth",thread_count=8)
----------------------------------------------------------------------------
----------------- ██████╗ █████╗ ██████╗ ████████╗██╗ ██╗ ----------------
----------------- ██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝██║ ██║ ----------------
----------------- ██║ ██║███████║██████╔╝ ██║ ███████║ ----------------
----------------- ██║ ██║██╔══██║██╔══██╗ ██║ ██╔══██║ ----------------
----------------- ██████╔╝██║ ██║██║ ██║ ██║ ██║ ██║ ----------------
----------------- ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ----------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
MAP Production Toolkit
----------------------------------------------------------------------------
---------------------- MAP Serverv Init Successful by ----------------------
---------------------- Bing VirtualEarth -----------------------------------
>>> bing.add_cord(116.3, 39.9, 116.6, 39.7, 13)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'bing' is not defined
>>> Bing.add_cord(116.3, 39.9, 116.6, 39.7, 13)