Skip to content

Commit

Permalink
Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayuasu committed Nov 23, 2024
1 parent 100d419 commit 4909fe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/tutorial/raster.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
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",
Expand Down

0 comments on commit 4909fe1

Please sign in to comment.