This is an automated email from the ASF dual-hosted git repository. jiayu pushed a commit to branch SEDONA-680 in repository https://gitbox.apache.org/repos/asf/sedona.git
commit 4909fe1e31c2ff100ccc13b6c8c06fd88331a9e0 Author: Jia Yu <[email protected]> AuthorDate: Fri Nov 22 22:29:08 2024 -0800 Commit --- docs/tutorial/raster.md | 3 +++ python/setup.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/raster.md b/docs/tutorial/raster.md index 5384f82541..7d7df586eb 100644 --- a/docs/tutorial/raster.md +++ b/docs/tutorial/raster.md @@ -615,6 +615,9 @@ raster.as_numpy_masked() # numpy array with nodata values masked as nan If you want to work with the raster data using `rasterio`, you can retrieve a `rasterio.DatasetReader` object using the `as_rasterio` method. +!!!note + You need to have the `rasterio` package installed (version >= 1.2.10) to use this method. You can install it using `pip install rasterio`. + ```python ds = raster.as_rasterio() # rasterio.DatasetReader object # Work with the raster using rasterio diff --git a/python/setup.py b/python/setup.py index e4dccbd8f1..09bc41753c 100644 --- a/python/setup.py +++ b/python/setup.py @@ -58,12 +58,12 @@ setup( long_description=long_description, long_description_content_type="text/markdown", python_requires=">=3.6", - install_requires=["attrs", "shapely>=1.7.0", "rasterio>=1.2.10"], + install_requires=["attrs", "shapely>=1.7.0"], extras_require={ "spark": ["pyspark>=2.3.0"], "pydeck-map": ["geopandas", "pydeck==0.8.0"], "kepler-map": ["geopandas", "keplergl==0.3.2"], - "all": ["pyspark>=2.3.0", "geopandas", "pydeck==0.8.0", "keplergl==0.3.2"], + "all": ["pyspark>=2.3.0", "geopandas", "pydeck==0.8.0", "keplergl==0.3.2", "rasterio>=1.2.10"], }, project_urls={ "Documentation": "https://sedona.apache.org",
