__init__.py 852 Bytes
Newer Older
1
#from . import compatibility
Daniel Scheffler's avatar
Daniel Scheffler committed
2
from . import io
3
from . import geo
Daniel Scheffler's avatar
Daniel Scheffler committed
4
5
from . import numeric
from . import processing
6
from . import similarity
Daniel Scheffler's avatar
Daniel Scheffler committed
7

8
9
from .io.raster.GeoArray import GeoArray

10
11
__all__=[#'compatibility',
         'io',
12
         'geo',
Daniel Scheffler's avatar
Daniel Scheffler committed
13
         'numeric',
14
         'processing',
15
         'similarity',
16
         'GeoArray']
Daniel Scheffler's avatar
Daniel Scheffler committed
17

Daniel Scheffler's avatar
Daniel Scheffler committed
18
__version__ = '20170315_01'
19
20
21
22
23
__author__='Daniel Scheffler'

# Validate GDAL version
try:
    import gdal
24
    import gdalnumeric
25
except ImportError:
26
    from osgeo import gdal
27
    from osgeo import gdalnumeric
28
29

try:
30
31
32
    getattr(gdal,'Warp')
    getattr(gdal,'Translate')
    getattr(gdalnumeric,'OpenNumPyArray')
33
34
35
36
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!")
37
del gdal, gdalnumeric