You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2023/10/03 14:48:13 UTC
[sedona] branch master updated: [DOCS] Fix typo and incorrect API name (#1044)
This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sedona.git
The following commit(s) were added to refs/heads/master by this push:
new 22ee91d7e [DOCS] Fix typo and incorrect API name (#1044)
22ee91d7e is described below
commit 22ee91d7ebb0f62dbec38b465f014f3d4f00ab15
Author: Nilesh Gajwani <ni...@gmail.com>
AuthorDate: Tue Oct 3 10:48:06 2023 -0400
[DOCS] Fix typo and incorrect API name (#1044)
---
docs/api/sql/Raster-visualizer.md | 2 +-
docs/tutorial/raster.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/api/sql/Raster-visualizer.md b/docs/api/sql/Raster-visualizer.md
index 3c7a594b4..ff05769b7 100644
--- a/docs/api/sql/Raster-visualizer.md
+++ b/docs/api/sql/Raster-visualizer.md
@@ -1,7 +1,7 @@
Sedona offers some APIs to aid in easy visualization of a raster object.
## Image-based visualization
-Sedona offers APIs to visualize a raster in an image form. This API only works for rasters with byte data, and bands <= 4 (Grayscale - RGBA). You can check the data type of an existing raster by using [RS_BandDataType](../Raster-operators/#rs_bandpixeltype) or create your own raster by passing 'B' while using [RS_MakeEmptyRaster](../Raster-loader/#rs_makeemptyraster).
+Sedona offers APIs to visualize a raster in an image form. This API only works for rasters with byte data, and bands <= 4 (Grayscale - RGBA). You can check the data type of an existing raster by using [RS_BandPixelType](../Raster-operators/#rs_bandpixeltype) or create your own raster by passing 'B' while using [RS_MakeEmptyRaster](../Raster-loader/#rs_makeemptyraster).
### RS_AsBase64
Introduction: Returns a base64 encoded string of the given raster. This function internally takes the first 4 bands as RGBA, and converts them to the PNG format, finally produces a base64 string. To visualize other bands, please use it together with `RS_Band`. You can take the resulting base64 string in [an online viewer](https://base64-viewer.onrender.com/) to check how the image looks like.
diff --git a/docs/tutorial/raster.md b/docs/tutorial/raster.md
index c515453c0..e645e78c6 100644
--- a/docs/tutorial/raster.md
+++ b/docs/tutorial/raster.md
@@ -504,7 +504,7 @@ SELECT r.rast, g.geom FROM rasterDf r, geomDf g WHERE RS_Interest(r.rast, g.geom
!!!note
These range and join queries will filter rasters using the provided geometric boundary and the spatial boundary of the raster.
- Sedona offers more raster predicates to do spatial range query and spatial join query. Please refer to [raster perdicates docs](../../api/sql/Raster-operators/#raster-predicates).
+ Sedona offers more raster predicates to do spatial range query and spatial join query. Please refer to [raster predicates docs](../../api/sql/Raster-operators/#raster-predicates).
## Visualize raster images