From 32c05be51ae1c62a5031ae0f643db0d0bf4bd826 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Wed, 23 Oct 2024 14:29:07 -0400 Subject: [PATCH] Add NODATA environment variable --- leafmap/common.py | 5 +++++ pyproject.toml | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/leafmap/common.py b/leafmap/common.py index 7fd8e00a2b..584667e86b 100644 --- a/leafmap/common.py +++ b/leafmap/common.py @@ -2957,6 +2957,11 @@ def get_local_tile_layer( else: tile_client = source + if nodata is None: + nodata = get_api_key("NODATA") + if isinstance(nodata, str): + nodata = float(nodata) + if quiet: output = widgets.Output() with output: diff --git a/pyproject.toml b/pyproject.toml index ee0c440c84..bb06f8e22f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,13 +29,13 @@ authors = [{name = "Qiusheng Wu", email = "giswqs@gmail.com"}] [project.optional-dependencies] backends = ["bokeh", "keplergl", "maplibre", "pydeck", "plotly"] -lidar = ["ipygany", "ipyvtklink", "laspy", "panel", "pyntcloud[LAS]", "pyvista"] -raster = ["localtileserver>=0.10.0", "jupyter-server-proxy", "rio-cogeo", "rioxarray", "netcdf4", "pynhd", "py3dep", "d2spy"] +lidar = ["geopandas","ipygany", "ipyvtklink", "laspy", "panel", "pyntcloud[LAS]", "pyvista[all]"] +raster = ["localtileserver>=0.10.4", "jupyter-server-proxy", "rio-cogeo", "rioxarray", "netcdf4", "pynhd", "py3dep", "d2spy"] sql = ["psycopg2", "sqlalchemy"] apps = ["streamlit-folium", "voila", "solara"] vector = ["geopandas", "osmnx", "pmtiles", "flask", "flask-cors", "lonboard", "mapclassify"] pmtiles = ["pmtiles", "flask", "flask-cors"] -ai = ["geopandas", "osmnx", "localtileserver>=0.10.0", "rastervision", "pytorch-lightning"] +ai = ["geopandas", "osmnx", "localtileserver>=0.10.4", "rastervision", "pytorch-lightning", "torchgeo"] maplibre = ["geopandas", "h3", "ipyvuetify", "localtileserver", "mapclassify", "maplibre", "pmtiles", "rioxarray", "xarray"] gdal = ["gdal", "pyproj"]