le-map-tools 0.36.4__tar.gz

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.
Files changed (75) hide show
  1. le_map_tools-0.36.4/.gitignore +130 -0
  2. le_map_tools-0.36.4/LICENSE +21 -0
  3. le_map_tools-0.36.4/PKG-INFO +260 -0
  4. le_map_tools-0.36.4/README.md +88 -0
  5. le_map_tools-0.36.4/le_map_tools/__init__.py +62 -0
  6. le_map_tools-0.36.4/le_map_tools/ai.py +2341 -0
  7. le_map_tools-0.36.4/le_map_tools/basemaps.py +631 -0
  8. le_map_tools-0.36.4/le_map_tools/cartoee.py +1375 -0
  9. le_map_tools-0.36.4/le_map_tools/chart.py +2027 -0
  10. le_map_tools-0.36.4/le_map_tools/cli.py +16 -0
  11. le_map_tools-0.36.4/le_map_tools/colormaps.py +243 -0
  12. le_map_tools-0.36.4/le_map_tools/common.py +15829 -0
  13. le_map_tools-0.36.4/le_map_tools/conversion.py +1412 -0
  14. le_map_tools-0.36.4/le_map_tools/core.py +1437 -0
  15. le_map_tools-0.36.4/le_map_tools/coreutils.py +792 -0
  16. le_map_tools-0.36.4/le_map_tools/data/census_data.json +1430 -0
  17. le_map_tools-0.36.4/le_map_tools/data/fonts/alibaba.otf +0 -0
  18. le_map_tools-0.36.4/le_map_tools/data/fonts/arial.ttf +0 -0
  19. le_map_tools-0.36.4/le_map_tools/data/gee_f.json +1 -0
  20. le_map_tools-0.36.4/le_map_tools/data/javascripts/ClippedComposite.js +22 -0
  21. le_map_tools-0.36.4/le_map_tools/data/javascripts/FromName.js +7 -0
  22. le_map_tools-0.36.4/le_map_tools/data/javascripts/ModisQaBands.js +59 -0
  23. le_map_tools-0.36.4/le_map_tools/data/javascripts/NormalizedDifference.js +25 -0
  24. le_map_tools-0.36.4/le_map_tools/data/javascripts/QualityMosaic.js +53 -0
  25. le_map_tools-0.36.4/le_map_tools/data/python/javascript_to_python.py +19 -0
  26. le_map_tools-0.36.4/le_map_tools/data/template/NLCD.qml +60 -0
  27. le_map_tools-0.36.4/le_map_tools/data/template/ee_api_docs.csv +1574 -0
  28. le_map_tools-0.36.4/le_map_tools/data/template/ee_api_docs.html +97 -0
  29. le_map_tools-0.36.4/le_map_tools/data/template/ee_data_catalog.csv +568 -0
  30. le_map_tools-0.36.4/le_map_tools/data/template/ee_legend_table.txt +19 -0
  31. le_map_tools-0.36.4/le_map_tools/data/template/legend.html +57 -0
  32. le_map_tools-0.36.4/le_map_tools/data/template/legend.txt +89 -0
  33. le_map_tools-0.36.4/le_map_tools/data/template/legend_style.html +78 -0
  34. le_map_tools-0.36.4/le_map_tools/data/template/template.py +53 -0
  35. le_map_tools-0.36.4/le_map_tools/data/template/toolbox.csv +15 -0
  36. le_map_tools-0.36.4/le_map_tools/datasets.py +197 -0
  37. le_map_tools-0.36.4/le_map_tools/deck.py +390 -0
  38. le_map_tools-0.36.4/le_map_tools/ee_tile_layers.py +311 -0
  39. le_map_tools-0.36.4/le_map_tools/examples/__init__.py +68 -0
  40. le_map_tools-0.36.4/le_map_tools/examples/datasets.txt +45 -0
  41. le_map_tools-0.36.4/le_map_tools/foliumap.py +3229 -0
  42. le_map_tools-0.36.4/le_map_tools/kepler.py +526 -0
  43. le_map_tools-0.36.4/le_map_tools/le_map_tools.py +5232 -0
  44. le_map_tools-0.36.4/le_map_tools/legends.py +528 -0
  45. le_map_tools-0.36.4/le_map_tools/map_widgets.py +2806 -0
  46. le_map_tools-0.36.4/le_map_tools/maplibregl.py +3073 -0
  47. le_map_tools-0.36.4/le_map_tools/ml.py +422 -0
  48. le_map_tools-0.36.4/le_map_tools/osm.py +371 -0
  49. le_map_tools-0.36.4/le_map_tools/plot.py +1021 -0
  50. le_map_tools-0.36.4/le_map_tools/plotlymap.py +813 -0
  51. le_map_tools-0.36.4/le_map_tools/report.py +40 -0
  52. le_map_tools-0.36.4/le_map_tools/static/basemap_selector.js +1422 -0
  53. le_map_tools-0.36.4/le_map_tools/static/color_picker.js +963 -0
  54. le_map_tools-0.36.4/le_map_tools/static/container.js +1274 -0
  55. le_map_tools-0.36.4/le_map_tools/static/inspector.js +1539 -0
  56. le_map_tools-0.36.4/le_map_tools/static/ipywidgets_styles.js +788 -0
  57. le_map_tools-0.36.4/le_map_tools/static/layer_editor.js +2625 -0
  58. le_map_tools-0.36.4/le_map_tools/static/layer_manager.js +1393 -0
  59. le_map_tools-0.36.4/le_map_tools/static/layer_manager_row.js +1300 -0
  60. le_map_tools-0.36.4/le_map_tools/static/legend.js +1433 -0
  61. le_map_tools-0.36.4/le_map_tools/static/legend_customization.js +1105 -0
  62. le_map_tools-0.36.4/le_map_tools/static/lit_widget.js +630 -0
  63. le_map_tools-0.36.4/le_map_tools/static/palette_editor.js +1238 -0
  64. le_map_tools-0.36.4/le_map_tools/static/raster_layer_editor.js +1759 -0
  65. le_map_tools-0.36.4/le_map_tools/static/search_bar.js +1817 -0
  66. le_map_tools-0.36.4/le_map_tools/static/styles.js +636 -0
  67. le_map_tools-0.36.4/le_map_tools/static/tab_panel.js +1247 -0
  68. le_map_tools-0.36.4/le_map_tools/static/toolbar.js +1614 -0
  69. le_map_tools-0.36.4/le_map_tools/static/toolbar_item.js +1147 -0
  70. le_map_tools-0.36.4/le_map_tools/static/tree_node.js +1075 -0
  71. le_map_tools-0.36.4/le_map_tools/static/utils.js +638 -0
  72. le_map_tools-0.36.4/le_map_tools/static/vector_layer_editor.js +1525 -0
  73. le_map_tools-0.36.4/le_map_tools/timelapse.py +5324 -0
  74. le_map_tools-0.36.4/le_map_tools/toolbar.py +5258 -0
  75. le_map_tools-0.36.4/pyproject.toml +208 -0
@@ -0,0 +1,130 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ docs/data/
6
+ docs/notebooks/*.json
7
+ docs/notebooks/*.js
8
+ docs/notebooks/*.tif
9
+ docs/notebooks/*.xml
10
+ docs/notebooks/*.zip
11
+ docs/notebooks/*.las
12
+ docs/notebooks/*.csv
13
+ docs/notebooks/*.gif
14
+ docs/notebooks/*.laz
15
+ docs/notebooks/*.nc
16
+ docs/notebooks/*.html
17
+ docs/notebooks/countries.*
18
+ docs/notebooks/cache/*
19
+ docs/changelog_update.md
20
+ **/.DS_Store
21
+ private/
22
+
23
+ # C extensions
24
+ *.so
25
+
26
+ # Distribution / packaging
27
+ md2rst.md
28
+ md2rst.rst
29
+ testing/
30
+ geemap/geemap_v*.py
31
+ geemap/static/
32
+ .Python
33
+ env/
34
+ build/
35
+ develop-eggs/
36
+ dist/
37
+ downloads/
38
+ eggs/
39
+ .eggs/
40
+ lib/
41
+ lib64/
42
+ node_modules/
43
+ parts/
44
+ sdist/
45
+ var/
46
+ wheels/
47
+ *.egg-info/
48
+ .installed.cfg
49
+ *.egg
50
+
51
+ # PyInstaller
52
+ # Usually these files are written by a python script from a template
53
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
54
+ *.manifest
55
+ *.spec
56
+
57
+ # Installer logs
58
+ pip-log.txt
59
+ pip-delete-this-directory.txt
60
+
61
+ # Unit test / coverage reports
62
+ htmlcov/
63
+ .tox/
64
+ .coverage
65
+ .coverage.*
66
+ .cache
67
+ nosetests.xml
68
+ coverage.xml
69
+ *.cover
70
+ .hypothesis/
71
+ .pytest_cache/
72
+
73
+ # Translations
74
+ *.mo
75
+ *.pot
76
+
77
+ # Django stuff:
78
+ *.log
79
+ local_settings.py
80
+
81
+ # Flask stuff:
82
+ instance/
83
+ .webassets-cache
84
+
85
+ # Scrapy stuff:
86
+ .scrapy
87
+
88
+ # Sphinx documentation
89
+ docs/_build/
90
+
91
+ # PyBuilder
92
+ target/
93
+
94
+ # Jupyter Notebook
95
+ .ipynb_checkpoints
96
+
97
+ # pyenv
98
+ .python-version
99
+
100
+ # celery beat schedule file
101
+ celerybeat-schedule
102
+
103
+ # SageMath parsed files
104
+ *.sage.py
105
+
106
+ # dotenv
107
+ .env
108
+
109
+ # virtualenv
110
+ .venv
111
+ venv/
112
+ ENV/
113
+
114
+ # Spyder project settings
115
+ .spyderproject
116
+ .spyproject
117
+
118
+ # Rope project settings
119
+ .ropeproject
120
+
121
+ # mkdocs documentation
122
+ /site
123
+
124
+ # mypy
125
+ .mypy_cache/
126
+
127
+ # IDE settings
128
+ .vscode/
129
+ docs/changelog_update.py
130
+ oryx-build-commands.txt
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020-2024, Qiusheng Wu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,260 @@
1
+ Metadata-Version: 2.4
2
+ Name: le_map_tools
3
+ Version: 0.36.4
4
+ Summary: A Python package for interactive mapping using Google Earth Engine and ipyleaflet
5
+ Project-URL: Homepage, https://github.com/gee-community/le_map_tools
6
+ Author-email: dayong Zhu <dayongzhu42@gmail.com>
7
+ License: MIT
8
+ License-File: LICENSE
9
+ Keywords: le_map_tools
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Natural Language :: English
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Requires-Python: >=3.10
18
+ Requires-Dist: anywidget
19
+ Requires-Dist: bqplot
20
+ Requires-Dist: earthengine-api>=1.6.12
21
+ Requires-Dist: folium>=0.17.0
22
+ Requires-Dist: geocoder
23
+ Requires-Dist: ipyevents
24
+ Requires-Dist: ipyfilechooser>=0.6.0
25
+ Requires-Dist: ipyleaflet>=0.19.2
26
+ Requires-Dist: le-repr
27
+ Requires-Dist: matplotlib
28
+ Requires-Dist: numpy
29
+ Requires-Dist: pandas
30
+ Requires-Dist: plotly
31
+ Requires-Dist: pyperclip
32
+ Requires-Dist: pyshp>=2.3.1
33
+ Requires-Dist: python-box
34
+ Requires-Dist: requests
35
+ Requires-Dist: scooby
36
+ Provides-Extra: ai
37
+ Requires-Dist: google-api-core; extra == 'ai'
38
+ Requires-Dist: google-cloud-aiplatform; extra == 'ai'
39
+ Requires-Dist: google-cloud-storage; extra == 'ai'
40
+ Requires-Dist: google-generativeai; extra == 'ai'
41
+ Requires-Dist: iso8601; extra == 'ai'
42
+ Requires-Dist: langchain; extra == 'ai'
43
+ Requires-Dist: langchain-community; extra == 'ai'
44
+ Requires-Dist: langchain-google-genai; extra == 'ai'
45
+ Provides-Extra: all
46
+ Requires-Dist: ee-extra>=0.0.15; extra == 'all'
47
+ Requires-Dist: ffmpeg-python; extra == 'all'
48
+ Requires-Dist: gdown; extra == 'all'
49
+ Requires-Dist: geeadd>=0.5.1; extra == 'all'
50
+ Requires-Dist: geedim; extra == 'all'
51
+ Requires-Dist: geojson; extra == 'all'
52
+ Requires-Dist: geopandas; extra == 'all'
53
+ Requires-Dist: google-api-core; extra == 'all'
54
+ Requires-Dist: google-cloud-aiplatform; extra == 'all'
55
+ Requires-Dist: google-cloud-storage; extra == 'all'
56
+ Requires-Dist: google-generativeai; extra == 'all'
57
+ Requires-Dist: gradio; extra == 'all'
58
+ Requires-Dist: h3; extra == 'all'
59
+ Requires-Dist: ipygany; extra == 'all'
60
+ Requires-Dist: ipynb-py-convert; extra == 'all'
61
+ Requires-Dist: ipytree; extra == 'all'
62
+ Requires-Dist: ipyvtklink; extra == 'all'
63
+ Requires-Dist: ipyvuetify; extra == 'all'
64
+ Requires-Dist: iso8601; extra == 'all'
65
+ Requires-Dist: jupyterlab; extra == 'all'
66
+ Requires-Dist: jupyterlab>=3; extra == 'all'
67
+ Requires-Dist: keplergl; extra == 'all'
68
+ Requires-Dist: langchain; extra == 'all'
69
+ Requires-Dist: langchain-community; extra == 'all'
70
+ Requires-Dist: langchain-google-genai; extra == 'all'
71
+ Requires-Dist: laspy[lazrs]; extra == 'all'
72
+ Requires-Dist: localtileserver; extra == 'all'
73
+ Requires-Dist: localtileserver>=0.10.1; extra == 'all'
74
+ Requires-Dist: mapclassify; extra == 'all'
75
+ Requires-Dist: mapclassify>=2.4.0; extra == 'all'
76
+ Requires-Dist: maplibre; extra == 'all'
77
+ Requires-Dist: mss; extra == 'all'
78
+ Requires-Dist: netcdf4; extra == 'all'
79
+ Requires-Dist: oeel; extra == 'all'
80
+ Requires-Dist: osmnx; extra == 'all'
81
+ Requires-Dist: owslib; extra == 'all'
82
+ Requires-Dist: palettable; extra == 'all'
83
+ Requires-Dist: panel; extra == 'all'
84
+ Requires-Dist: pmtiles; extra == 'all'
85
+ Requires-Dist: psycopg2; extra == 'all'
86
+ Requires-Dist: pycrs; extra == 'all'
87
+ Requires-Dist: pydeck; extra == 'all'
88
+ Requires-Dist: pyntcloud[las]; extra == 'all'
89
+ Requires-Dist: pyvista; extra == 'all'
90
+ Requires-Dist: pyvista-xarray; extra == 'all'
91
+ Requires-Dist: rio-cogeo; extra == 'all'
92
+ Requires-Dist: rioxarray; extra == 'all'
93
+ Requires-Dist: sankee>=0.1.0; extra == 'all'
94
+ Requires-Dist: solara; extra == 'all'
95
+ Requires-Dist: sqlalchemy; extra == 'all'
96
+ Requires-Dist: streamlit-folium; extra == 'all'
97
+ Requires-Dist: voila; extra == 'all'
98
+ Requires-Dist: watchfiles; extra == 'all'
99
+ Requires-Dist: whiteboxgui>=0.6.0; extra == 'all'
100
+ Requires-Dist: xarray; extra == 'all'
101
+ Requires-Dist: xee; extra == 'all'
102
+ Provides-Extra: apps
103
+ Requires-Dist: gradio; extra == 'apps'
104
+ Requires-Dist: solara; extra == 'apps'
105
+ Requires-Dist: streamlit-folium; extra == 'apps'
106
+ Requires-Dist: voila; extra == 'apps'
107
+ Provides-Extra: backends
108
+ Requires-Dist: keplergl; extra == 'backends'
109
+ Requires-Dist: pydeck; extra == 'backends'
110
+ Provides-Extra: dev
111
+ Requires-Dist: jupyterlab; extra == 'dev'
112
+ Requires-Dist: watchfiles; extra == 'dev'
113
+ Provides-Extra: extra
114
+ Requires-Dist: ee-extra>=0.0.15; extra == 'extra'
115
+ Requires-Dist: ffmpeg-python; extra == 'extra'
116
+ Requires-Dist: gdown; extra == 'extra'
117
+ Requires-Dist: geeadd>=0.5.1; extra == 'extra'
118
+ Requires-Dist: geojson; extra == 'extra'
119
+ Requires-Dist: geopandas; extra == 'extra'
120
+ Requires-Dist: ipynb-py-convert; extra == 'extra'
121
+ Requires-Dist: ipytree; extra == 'extra'
122
+ Requires-Dist: jupyterlab>=3; extra == 'extra'
123
+ Requires-Dist: mapclassify>=2.4.0; extra == 'extra'
124
+ Requires-Dist: mss; extra == 'extra'
125
+ Requires-Dist: oeel; extra == 'extra'
126
+ Requires-Dist: owslib; extra == 'extra'
127
+ Requires-Dist: palettable; extra == 'extra'
128
+ Requires-Dist: pycrs; extra == 'extra'
129
+ Requires-Dist: sankee>=0.1.0; extra == 'extra'
130
+ Requires-Dist: whiteboxgui>=0.6.0; extra == 'extra'
131
+ Requires-Dist: xee; extra == 'extra'
132
+ Provides-Extra: lidar
133
+ Requires-Dist: ipygany; extra == 'lidar'
134
+ Requires-Dist: ipyvtklink; extra == 'lidar'
135
+ Requires-Dist: laspy[lazrs]; extra == 'lidar'
136
+ Requires-Dist: panel; extra == 'lidar'
137
+ Requires-Dist: pyntcloud[las]; extra == 'lidar'
138
+ Requires-Dist: pyvista; extra == 'lidar'
139
+ Requires-Dist: pyvista-xarray; extra == 'lidar'
140
+ Requires-Dist: rioxarray; extra == 'lidar'
141
+ Provides-Extra: maplibre
142
+ Requires-Dist: geopandas; extra == 'maplibre'
143
+ Requires-Dist: h3; extra == 'maplibre'
144
+ Requires-Dist: ipyvuetify; extra == 'maplibre'
145
+ Requires-Dist: localtileserver; extra == 'maplibre'
146
+ Requires-Dist: mapclassify; extra == 'maplibre'
147
+ Requires-Dist: maplibre; extra == 'maplibre'
148
+ Requires-Dist: pmtiles; extra == 'maplibre'
149
+ Requires-Dist: rioxarray; extra == 'maplibre'
150
+ Requires-Dist: xarray; extra == 'maplibre'
151
+ Provides-Extra: raster
152
+ Requires-Dist: geedim; extra == 'raster'
153
+ Requires-Dist: localtileserver>=0.10.1; extra == 'raster'
154
+ Requires-Dist: netcdf4; extra == 'raster'
155
+ Requires-Dist: pyvista-xarray; extra == 'raster'
156
+ Requires-Dist: rio-cogeo; extra == 'raster'
157
+ Requires-Dist: rioxarray; extra == 'raster'
158
+ Provides-Extra: sql
159
+ Requires-Dist: psycopg2; extra == 'sql'
160
+ Requires-Dist: sqlalchemy; extra == 'sql'
161
+ Provides-Extra: tests
162
+ Requires-Dist: psutil; extra == 'tests'
163
+ Provides-Extra: vector
164
+ Requires-Dist: geopandas; extra == 'vector'
165
+ Requires-Dist: osmnx; extra == 'vector'
166
+ Provides-Extra: workshop
167
+ Requires-Dist: ffmpeg-python; extra == 'workshop'
168
+ Requires-Dist: gdown; extra == 'workshop'
169
+ Requires-Dist: geedim; extra == 'workshop'
170
+ Requires-Dist: geopandas; extra == 'workshop'
171
+ Description-Content-Type: text/markdown
172
+
173
+ # geemap
174
+
175
+ [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/gee-community/geemap/blob/master)
176
+ [![Open in Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/gee-community/geemap/master?labpath=docs%2Fnotebooks%2F00_geemap_colab.ipynb)
177
+ [![Open In Studio Lab](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/gee-community/geemap/blob/master/docs/notebooks/00_geemap_colab.ipynb)
178
+ [![image](https://img.shields.io/pypi/v/geemap.svg)](https://pypi.python.org/pypi/geemap)
179
+ [![image](https://static.pepy.tech/badge/geemap)](https://pepy.tech/project/geemap)
180
+ [![Conda Recipe](https://img.shields.io/badge/recipe-geemap-green.svg)](https://github.com/conda-forge/geemap-feedstock)
181
+ [![image](https://img.shields.io/conda/vn/conda-forge/geemap.svg)](https://anaconda.org/conda-forge/geemap)
182
+ [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/geemap.svg)](https://anaconda.org/conda-forge/geemap)
183
+ [![image](https://github.com/gee-community/geemap/workflows/docs/badge.svg)](https://geemap.org)
184
+ [![image](https://img.shields.io/badge/YouTube-Channel-red)](https://youtube.com/@giswqs)
185
+ [![image](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
186
+ [![image](https://joss.theoj.org/papers/10.21105/joss.02305/status.svg)](https://joss.theoj.org/papers/10.21105/joss.02305)
187
+ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/gee-community/geemap/master.svg)](https://results.pre-commit.ci/latest/github/gee-community/geemap/master)
188
+
189
+ [![logo](https://i.imgur.com/9OOSpDm.png)](https://github.com/gee-community/geemap/blob/master/docs/assets/logo.png)
190
+
191
+ **A Python package for interactive geospatial analysis and visualization with Google Earth Engine**
192
+
193
+ - GitHub repo: <https://github.com/gee-community/geemap>
194
+ - Documentation: <https://geemap.org>
195
+ - PyPI: <https://pypi.org/project/geemap>
196
+ - Conda-forge: <https://anaconda.org/conda-forge/geemap>
197
+ - 360+ GEE notebook examples: <https://github.com/giswqs/earthengine-py-notebooks>
198
+ - GEE Tutorials on YouTube: <https://youtube.com/@giswqs>
199
+ - Free software: [MIT license](https://opensource.org/licenses/MIT)
200
+
201
+ Join our Discord server 👇
202
+
203
+ [![](https://dcbadge.limes.pink/api/server/https://discord.gg/UgZecTUq5P)](https://discord.gg/UgZecTUq5P)
204
+
205
+ **Acknowledgment:** The geemap project is supported by the National Aeronautics and Space Administration (NASA) under Grant No. 80NSSC22K1742 issued through the [Open Source Tools, Frameworks, and Libraries 2020 Program](https://bit.ly/3RVBRcQ).
206
+
207
+ ## Announcement
208
+
209
+ The book _**Earth Engine and Geemap: Geospatial Data Science with Python**_, written by [Qiusheng Wu](https://gishub.org), has been published by Locate Press in July 2023. If you're interested in purchasing the book, please visit this URL: <https://locatepress.com/book/gee>.
210
+
211
+ ![book](https://images.geemap.org/book.png)
212
+
213
+ ## Introduction
214
+
215
+ **Geemap** is a Python package for interactive geospatial analysis and visualization with [Google Earth Engine](https://earthengine.google.com/) (GEE), which is a cloud computing platform with a [multi-petabyte catalog](https://developers.google.com/earth-engine/datasets/) of satellite imagery and geospatial datasets. During the past few years, GEE has become very popular in the geospatial community and it has empowered numerous environmental applications at local, regional, and global scales. GEE provides both JavaScript and Python APIs for making computational requests to the Earth Engine servers. Compared with the comprehensive [documentation](https://developers.google.com/earth-engine) and interactive IDE (i.e., [GEE JavaScript Code Editor](https://code.earthengine.google.com/)) of the GEE JavaScript API, the GEE Python API has relatively little documentation and limited functionality for visualizing results interactively. The geemap Python package was created to fill this gap. It is built upon [ipyleaflet](https://github.com/jupyter-widgets/ipyleaflet) and [ipywidgets](https://github.com/jupyter-widgets/ipywidgets), and enables users to analyze and visualize Earth Engine datasets interactively within a Jupyter-based environment.
216
+
217
+ **Geemap** is intended for students and researchers, who would like to utilize the Python ecosystem of diverse libraries and tools to explore Google Earth Engine. It is also designed for existing GEE users who would like to transition from the GEE JavaScript API to Python API. The automated JavaScript-to-Python [conversion module](https://github.com/gee-community/geemap/blob/master/geemap/conversion.py) of the geemap package can greatly reduce the time needed to convert existing GEE JavaScripts to Python scripts and Jupyter notebooks.
218
+
219
+ For video tutorials and notebook examples, please visit the [examples page](https://github.com/gee-community/geemap/tree/master/examples). For complete documentation on geemap modules and methods, please visit the [API Reference](https://geemap.org/geemap/).
220
+
221
+ If you find geemap useful in your research, please consider citing the following papers to support my work. Thank you for your support.
222
+
223
+ - Wu, Q., (2020). geemap: A Python package for interactive mapping with Google Earth Engine. The Journal of Open Source Software, 5(51), 2305. <https://doi.org/10.21105/joss.02305>
224
+ - Wu, Q., Lane, C. R., Li, X., Zhao, K., Zhou, Y., Clinton, N., DeVries, B., Golden, H. E., & Lang, M. W. (2019). Integrating LiDAR data and multi-temporal aerial imagery to map wetland inundation dynamics using Google Earth Engine. Remote Sensing of Environment, 228, 1-13. <https://doi.org/10.1016/j.rse.2019.04.015> ([pdf](https://gishub.org/2019_rse) | [source code](https://doi.org/10.6084/m9.figshare.8864921))
225
+
226
+ Check out the geemap workshop presented at the GeoPython Conference 2021. This workshop gives a comprehensive introduction to the key features of geemap.
227
+
228
+ [![geemap workshop](https://img.youtube.com/vi/wGjpjh9IQ5I/0.jpg)](https://www.youtube.com/watch?v=wGjpjh9IQ5I)
229
+
230
+ ## Key Features
231
+
232
+ Below is a partial list of features available for the geemap package. Please check the [examples](https://github.com/gee-community/geemap/tree/master/examples) page for notebook examples, GIF animations, and video tutorials.
233
+
234
+ - Convert Earth Engine JavaScripts to Python scripts and Jupyter notebooks.
235
+ - Display Earth Engine data layers for interactive mapping.
236
+ - Support Earth Engine JavaScript API-styled functions in Python, such as `Map.addLayer()`, `Map.setCenter()`, `Map.centerObject()`, `Map.setOptions()`.
237
+ - Create split-panel maps with Earth Engine data.
238
+ - Retrieve Earth Engine data interactively using the Inspector Tool.
239
+ - Interactive plotting of Earth Engine data by simply clicking on the map.
240
+ - Convert data format between GeoJSON and Earth Engine.
241
+ - Use drawing tools to interact with Earth Engine data.
242
+ - Use shapefiles with Earth Engine without having to upload data to one's GEE account.
243
+ - Export Earth Engine FeatureCollection to other formats (i.e., shp, csv, json, kml, kmz).
244
+ - Export Earth Engine Image and ImageCollection as GeoTIFF.
245
+ - Extract pixels from an Earth Engine Image into a 3D numpy array.
246
+ - Calculate zonal statistics by group.
247
+ - Add a customized legend for Earth Engine data.
248
+ - Convert Earth Engine JavaScripts to Python code directly within Jupyter notebook.
249
+ - Add animated text to GIF images generated from Earth Engine data.
250
+ - Add colorbar and images to GIF animations generated from Earth Engine data.
251
+ - Create Landsat timelapse animations with animated text using Earth Engine.
252
+ - Search places and datasets from Earth Engine Data Catalog.
253
+ - Use timeseries inspector to visualize landscape changes over time.
254
+ - Export Earth Engine maps as HTML files and PNG images.
255
+ - Search Earth Engine API documentation within Jupyter notebooks.
256
+ - Import Earth Engine assets from personal account.
257
+ - Publish interactive GEE maps directly within Jupyter notebook.
258
+ - Add local raster datasets (e.g., GeoTIFF) to the map.
259
+ - Perform image classification and accuracy assessment.
260
+ - Extract pixel values interactively and export as shapefile and csv.
@@ -0,0 +1,88 @@
1
+ # geemap
2
+
3
+ [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/gee-community/geemap/blob/master)
4
+ [![Open in Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/gee-community/geemap/master?labpath=docs%2Fnotebooks%2F00_geemap_colab.ipynb)
5
+ [![Open In Studio Lab](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/gee-community/geemap/blob/master/docs/notebooks/00_geemap_colab.ipynb)
6
+ [![image](https://img.shields.io/pypi/v/geemap.svg)](https://pypi.python.org/pypi/geemap)
7
+ [![image](https://static.pepy.tech/badge/geemap)](https://pepy.tech/project/geemap)
8
+ [![Conda Recipe](https://img.shields.io/badge/recipe-geemap-green.svg)](https://github.com/conda-forge/geemap-feedstock)
9
+ [![image](https://img.shields.io/conda/vn/conda-forge/geemap.svg)](https://anaconda.org/conda-forge/geemap)
10
+ [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/geemap.svg)](https://anaconda.org/conda-forge/geemap)
11
+ [![image](https://github.com/gee-community/geemap/workflows/docs/badge.svg)](https://geemap.org)
12
+ [![image](https://img.shields.io/badge/YouTube-Channel-red)](https://youtube.com/@giswqs)
13
+ [![image](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
14
+ [![image](https://joss.theoj.org/papers/10.21105/joss.02305/status.svg)](https://joss.theoj.org/papers/10.21105/joss.02305)
15
+ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/gee-community/geemap/master.svg)](https://results.pre-commit.ci/latest/github/gee-community/geemap/master)
16
+
17
+ [![logo](https://i.imgur.com/9OOSpDm.png)](https://github.com/gee-community/geemap/blob/master/docs/assets/logo.png)
18
+
19
+ **A Python package for interactive geospatial analysis and visualization with Google Earth Engine**
20
+
21
+ - GitHub repo: <https://github.com/gee-community/geemap>
22
+ - Documentation: <https://geemap.org>
23
+ - PyPI: <https://pypi.org/project/geemap>
24
+ - Conda-forge: <https://anaconda.org/conda-forge/geemap>
25
+ - 360+ GEE notebook examples: <https://github.com/giswqs/earthengine-py-notebooks>
26
+ - GEE Tutorials on YouTube: <https://youtube.com/@giswqs>
27
+ - Free software: [MIT license](https://opensource.org/licenses/MIT)
28
+
29
+ Join our Discord server 👇
30
+
31
+ [![](https://dcbadge.limes.pink/api/server/https://discord.gg/UgZecTUq5P)](https://discord.gg/UgZecTUq5P)
32
+
33
+ **Acknowledgment:** The geemap project is supported by the National Aeronautics and Space Administration (NASA) under Grant No. 80NSSC22K1742 issued through the [Open Source Tools, Frameworks, and Libraries 2020 Program](https://bit.ly/3RVBRcQ).
34
+
35
+ ## Announcement
36
+
37
+ The book _**Earth Engine and Geemap: Geospatial Data Science with Python**_, written by [Qiusheng Wu](https://gishub.org), has been published by Locate Press in July 2023. If you're interested in purchasing the book, please visit this URL: <https://locatepress.com/book/gee>.
38
+
39
+ ![book](https://images.geemap.org/book.png)
40
+
41
+ ## Introduction
42
+
43
+ **Geemap** is a Python package for interactive geospatial analysis and visualization with [Google Earth Engine](https://earthengine.google.com/) (GEE), which is a cloud computing platform with a [multi-petabyte catalog](https://developers.google.com/earth-engine/datasets/) of satellite imagery and geospatial datasets. During the past few years, GEE has become very popular in the geospatial community and it has empowered numerous environmental applications at local, regional, and global scales. GEE provides both JavaScript and Python APIs for making computational requests to the Earth Engine servers. Compared with the comprehensive [documentation](https://developers.google.com/earth-engine) and interactive IDE (i.e., [GEE JavaScript Code Editor](https://code.earthengine.google.com/)) of the GEE JavaScript API, the GEE Python API has relatively little documentation and limited functionality for visualizing results interactively. The geemap Python package was created to fill this gap. It is built upon [ipyleaflet](https://github.com/jupyter-widgets/ipyleaflet) and [ipywidgets](https://github.com/jupyter-widgets/ipywidgets), and enables users to analyze and visualize Earth Engine datasets interactively within a Jupyter-based environment.
44
+
45
+ **Geemap** is intended for students and researchers, who would like to utilize the Python ecosystem of diverse libraries and tools to explore Google Earth Engine. It is also designed for existing GEE users who would like to transition from the GEE JavaScript API to Python API. The automated JavaScript-to-Python [conversion module](https://github.com/gee-community/geemap/blob/master/geemap/conversion.py) of the geemap package can greatly reduce the time needed to convert existing GEE JavaScripts to Python scripts and Jupyter notebooks.
46
+
47
+ For video tutorials and notebook examples, please visit the [examples page](https://github.com/gee-community/geemap/tree/master/examples). For complete documentation on geemap modules and methods, please visit the [API Reference](https://geemap.org/geemap/).
48
+
49
+ If you find geemap useful in your research, please consider citing the following papers to support my work. Thank you for your support.
50
+
51
+ - Wu, Q., (2020). geemap: A Python package for interactive mapping with Google Earth Engine. The Journal of Open Source Software, 5(51), 2305. <https://doi.org/10.21105/joss.02305>
52
+ - Wu, Q., Lane, C. R., Li, X., Zhao, K., Zhou, Y., Clinton, N., DeVries, B., Golden, H. E., & Lang, M. W. (2019). Integrating LiDAR data and multi-temporal aerial imagery to map wetland inundation dynamics using Google Earth Engine. Remote Sensing of Environment, 228, 1-13. <https://doi.org/10.1016/j.rse.2019.04.015> ([pdf](https://gishub.org/2019_rse) | [source code](https://doi.org/10.6084/m9.figshare.8864921))
53
+
54
+ Check out the geemap workshop presented at the GeoPython Conference 2021. This workshop gives a comprehensive introduction to the key features of geemap.
55
+
56
+ [![geemap workshop](https://img.youtube.com/vi/wGjpjh9IQ5I/0.jpg)](https://www.youtube.com/watch?v=wGjpjh9IQ5I)
57
+
58
+ ## Key Features
59
+
60
+ Below is a partial list of features available for the geemap package. Please check the [examples](https://github.com/gee-community/geemap/tree/master/examples) page for notebook examples, GIF animations, and video tutorials.
61
+
62
+ - Convert Earth Engine JavaScripts to Python scripts and Jupyter notebooks.
63
+ - Display Earth Engine data layers for interactive mapping.
64
+ - Support Earth Engine JavaScript API-styled functions in Python, such as `Map.addLayer()`, `Map.setCenter()`, `Map.centerObject()`, `Map.setOptions()`.
65
+ - Create split-panel maps with Earth Engine data.
66
+ - Retrieve Earth Engine data interactively using the Inspector Tool.
67
+ - Interactive plotting of Earth Engine data by simply clicking on the map.
68
+ - Convert data format between GeoJSON and Earth Engine.
69
+ - Use drawing tools to interact with Earth Engine data.
70
+ - Use shapefiles with Earth Engine without having to upload data to one's GEE account.
71
+ - Export Earth Engine FeatureCollection to other formats (i.e., shp, csv, json, kml, kmz).
72
+ - Export Earth Engine Image and ImageCollection as GeoTIFF.
73
+ - Extract pixels from an Earth Engine Image into a 3D numpy array.
74
+ - Calculate zonal statistics by group.
75
+ - Add a customized legend for Earth Engine data.
76
+ - Convert Earth Engine JavaScripts to Python code directly within Jupyter notebook.
77
+ - Add animated text to GIF images generated from Earth Engine data.
78
+ - Add colorbar and images to GIF animations generated from Earth Engine data.
79
+ - Create Landsat timelapse animations with animated text using Earth Engine.
80
+ - Search places and datasets from Earth Engine Data Catalog.
81
+ - Use timeseries inspector to visualize landscape changes over time.
82
+ - Export Earth Engine maps as HTML files and PNG images.
83
+ - Search Earth Engine API documentation within Jupyter notebooks.
84
+ - Import Earth Engine assets from personal account.
85
+ - Publish interactive GEE maps directly within Jupyter notebook.
86
+ - Add local raster datasets (e.g., GeoTIFF) to the map.
87
+ - Perform image classification and accuracy assessment.
88
+ - Extract pixel values interactively and export as shapefile and csv.
@@ -0,0 +1,62 @@
1
+ """Top-level package for le_map_tools."""
2
+
3
+ __author__ = """Qiusheng Wu"""
4
+ __email__ = "giswqs@gmail.com"
5
+ __version__ = "0.35.3"
6
+
7
+ import os
8
+
9
+
10
+ def in_colab_shell():
11
+ """Tests if the code is being executed within Google Colab."""
12
+ import sys
13
+
14
+ if "google.colab" in sys.modules:
15
+ return True
16
+ else:
17
+ return False
18
+
19
+
20
+ def use_folium():
21
+ """Whether to use the folium or ipyleaflet plotting backend."""
22
+ if os.environ.get("USE_FOLIUM") is not None:
23
+ return True
24
+ else:
25
+ return False
26
+
27
+
28
+ def _use_eerepr(token="USE_EEREPR"):
29
+ """Whether to use lerepr for printing Earth Engine objects.
30
+
31
+ Returns:
32
+ bool: True if lerepr is used for printing Earth Engine objects.
33
+ """
34
+
35
+ if os.environ.get(token) is None:
36
+ return True
37
+ else:
38
+ return False
39
+
40
+
41
+ if use_folium():
42
+ from .foliumap import *
43
+ else:
44
+ try:
45
+ from .le_map_tools import *
46
+ except Exception as e:
47
+ if in_colab_shell():
48
+ print(
49
+ "Please restart Colab runtime after installation if you encounter any errors when importing le_map_tools."
50
+ )
51
+ else:
52
+ print(
53
+ "Please restart Jupyter kernel after installation if you encounter any errors when importing le_map_tools."
54
+ )
55
+ raise e
56
+
57
+ if _use_eerepr():
58
+ import lerepr
59
+
60
+ lerepr.initialize()
61
+
62
+ from .report import Report