jiayuasu commented on code in PR #1039:
URL: https://github.com/apache/sedona/pull/1039#discussion_r1339470313
##########
docs/api/sql/Raster-operators.md:
##########
@@ -192,6 +192,14 @@ Provided band index 3 does not lie in the raster
Introduction: Returns the georeference metadata of raster as a string in GDAL
or ESRI format. Default is GDAL if not specified.
+!!!note
+ If you are using `show()` to display the output, it will show special
characters as escape sequences. To get the expected behavior use the following
code:
+
+ ```sql
+
print(df.selectExpr("RS_GeoReference(rast)").sample(0.5).collect().mkString(""))
Review Comment:
This is not a SQL example. This should be a language-specific example. You
need to provide examples for (Scala/Java) and (Python). Please also say
`sample()` here is to reduce data to be collected. Other functions such as
filter() will work as well.
##########
docs/api/sql/Raster-visualizer.md:
##########
@@ -68,6 +68,14 @@ RS_AsMatrix expects a raster, and optionally a band
(default: 1) and postDecimal
!!!Note
If the provided raster has integral values, postDecimalPrecision (if any)
is simply ignored and integers are printed in the resultant string
+!!!note
+ If you are using `show()` to display the output, it will show special
characters as escape sequences. To get the expected behavior use the following
code:
+
+ ```sql
+
print(df.selectExpr("RS_AsMatrix(rast)").sample(0.5).collect().mkString(""))
Review Comment:
This is not a SQL example. This should be a language-specific example. You
need to provide examples for (Scala/Java) and (Python). Please also say
`sample()` here is to reduce data to be collected. Other functions such as
filter() will work as well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]