geoai-py 0.4.3__py2.py3-none-any.whl → 0.5.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- geoai/__init__.py +6 -1
- geoai/classify.py +933 -0
- geoai/download.py +119 -80
- geoai/geoai.py +93 -1
- geoai/train.py +115 -6
- geoai/utils.py +196 -0
- {geoai_py-0.4.3.dist-info → geoai_py-0.5.1.dist-info}/METADATA +9 -1
- geoai_py-0.5.1.dist-info/RECORD +16 -0
- {geoai_py-0.4.3.dist-info → geoai_py-0.5.1.dist-info}/WHEEL +1 -1
- geoai_py-0.4.3.dist-info/RECORD +0 -15
- {geoai_py-0.4.3.dist-info → geoai_py-0.5.1.dist-info}/entry_points.txt +0 -0
- {geoai_py-0.4.3.dist-info → geoai_py-0.5.1.dist-info}/licenses/LICENSE +0 -0
- {geoai_py-0.4.3.dist-info → geoai_py-0.5.1.dist-info}/top_level.txt +0 -0
geoai/__init__.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
__author__ = """Qiusheng Wu"""
|
|
4
4
|
__email__ = "giswqs@gmail.com"
|
|
5
|
-
__version__ = "0.
|
|
5
|
+
__version__ = "0.5.1"
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
import os
|
|
@@ -23,6 +23,8 @@ def set_proj_lib_path(verbose=False):
|
|
|
23
23
|
bool: True if both paths were set successfully, False otherwise.
|
|
24
24
|
"""
|
|
25
25
|
try:
|
|
26
|
+
from rasterio.env import set_gdal_config
|
|
27
|
+
|
|
26
28
|
# Get conda environment path
|
|
27
29
|
conda_env_path = os.environ.get("CONDA_PREFIX") or sys.prefix
|
|
28
30
|
|
|
@@ -86,6 +88,9 @@ def set_proj_lib_path(verbose=False):
|
|
|
86
88
|
if proj_set and gdal_set:
|
|
87
89
|
break
|
|
88
90
|
|
|
91
|
+
set_gdal_config("PROJ_LIB", os.environ["PROJ_LIB"])
|
|
92
|
+
set_gdal_config("GDAL_DATA", os.environ["GDAL_DATA"])
|
|
93
|
+
|
|
89
94
|
except Exception as e:
|
|
90
95
|
print(f"Error setting projection library paths: {e}")
|
|
91
96
|
return
|