__init__.py 821 Bytes
Newer Older
1
from __future__ import (division, print_function, absolute_import, unicode_literals)
2
3
4
5
6
7
8
9
from . import compatibility
from . import convenience
from . import dtypes
from . import geo
from . import io
from . import numeric
from . import similarity
from . import web
10

Daniel Scheffler's avatar
Daniel Scheffler committed
11
12
__version__ = '0.7.1'
__versionalias__ = '20170913_01'
Daniel Scheffler's avatar
Daniel Scheffler committed
13
__author__ = 'Daniel Scheffler'
14
15
16
17

# Validate GDAL version
try:
    import gdal
18
    import gdalnumeric
19
except ImportError:
20
    from osgeo import gdal
21
    from osgeo import gdalnumeric
22
23

try:
Daniel Scheffler's avatar
Daniel Scheffler committed
24
25
26
    getattr(gdal, 'Warp')
    getattr(gdal, 'Translate')
    getattr(gdalnumeric, 'OpenNumPyArray')
27
28
29
30
except AttributeError:
    import warnings
    warnings.warn("Your GDAL version is too old to support all functionalities of the 'py_tools_ds' package. "
                  "Please update GDAL!")
31
del gdal, gdalnumeric