jiayuasu commented on code in PR #2260:
URL: https://github.com/apache/sedona/pull/2260#discussion_r2271532248


##########
docs/api/sql/geography/Constructor.md:
##########
@@ -17,4 +17,44 @@
  under the License.
  -->
 
-## ST_GeogFromWKT
+## ST_GeogFromWKB
+
+Introduction: Construct a Geography from WKB Binary.
+
+Format:
+
+`ST_GeogFromWKB (Wkb: Binary)`
+
+Since: `v1.8.0`
+
+SQL Example
+
+```sql
+SELECT ST_GeogFromWKB([01 02 00 00 00 02 00 00 00 00 00 00 00 84 d6 00 c0 00 
00 00 00 80 b5 d6 bf 00 00 00 60 e1 ef f7 bf 00 00 00 80 07 5d e5 bf])
+```
+
+Output:
+
+```
+LINESTRING (-2.1 -0.4, -1.5 -0.7)
+```
+
+## ST_GeogFromEWKB
+
+Introduction: Construct a Geography from EWKB Binary. This function is an 
alias of [ST_GeogFromWKB](#st_geogfromwkb).
+
+Format:
+`ST_GeogFromEWKB (EWkb: Binary)`
+
+Since: `v1.8.0`
+
+SQL Example
+
+```sql
+SELECT ST_GeogFromEWKB([01 02 00 00 00 02 00 00 00 00 00 00 00 84 D6 00 C0 00 
00 00 00 80 B5 D6 BF 00 00 00 60 E1 EF F7 BF 00 00 00 80 07 5D E5 BF])
+```
+
+Output:
+
+```
+LINESTRING (-2.1 -0.4, -1.5 -0.7)

Review Comment:
   Please add EWKB output example



##########
docs/api/sql/geography/Constructor.md:
##########
@@ -17,4 +17,44 @@
  under the License.
  -->
 
-## ST_GeogFromWKT
+## ST_GeogFromWKB
+
+Introduction: Construct a Geography from WKB Binary.
+
+Format:
+
+`ST_GeogFromWKB (Wkb: Binary)`
+
+Since: `v1.8.0`
+
+SQL Example
+
+```sql
+SELECT ST_GeogFromWKB([01 02 00 00 00 02 00 00 00 00 00 00 00 84 d6 00 c0 00 
00 00 00 80 b5 d6 bf 00 00 00 60 e1 ef f7 bf 00 00 00 80 07 5d e5 bf])
+```
+
+Output:
+
+```
+LINESTRING (-2.1 -0.4, -1.5 -0.7)
+```
+
+## ST_GeogFromEWKB
+
+Introduction: Construct a Geography from EWKB Binary. This function is an 
alias of [ST_GeogFromWKB](#st_geogfromwkb).
+
+Format:
+`ST_GeogFromEWKB (EWkb: Binary)`
+
+Since: `v1.8.0`
+
+SQL Example
+
+```sql
+SELECT ST_GeogFromEWKB([01 02 00 00 00 02 00 00 00 00 00 00 00 84 D6 00 C0 00 
00 00 00 80 B5 D6 BF 00 00 00 60 E1 EF F7 BF 00 00 00 80 07 5D E5 BF])
+```
+
+Output:
+
+```
+LINESTRING (-2.1 -0.4, -1.5 -0.7)

Review Comment:
   Please add an output example with SRID



-- 
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]

Reply via email to