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 2026/07/29 19:40:06 UTC
(sedona) branch master updated: [GH-3179] Document Flink Geography coordinate accessors (#3210)
This is an automated email from the ASF dual-hosted git repository.
jiayuasu 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 c82865c8a36 [GH-3179] Document Flink Geography coordinate accessors (#3210)
c82865c8a36 is described below
commit c82865c8a3650b1e10667d87c9a77e29411d240d
Author: Jia Yu <ji...@apache.org>
AuthorDate: Wed Jul 29 12:40:01 2026 -0700
[GH-3179] Document Flink Geography coordinate accessors (#3210)
---
docs/api/flink/Geography-Functions.md | 2 ++
docs/api/flink/Geography-Functions/ST_X.md | 42 ++++++++++++++++++++++++++++++
docs/api/flink/Geography-Functions/ST_Y.md | 42 ++++++++++++++++++++++++++++++
3 files changed, 86 insertions(+)
diff --git a/docs/api/flink/Geography-Functions.md b/docs/api/flink/Geography-Functions.md
index 654bc9a8211..0f9b772714e 100644
--- a/docs/api/flink/Geography-Functions.md
+++ b/docs/api/flink/Geography-Functions.md
@@ -57,6 +57,8 @@ These functions edit, measure, or format geography objects. Measurements are com
| [ST_MakeLine](Geography-Functions/ST_MakeLine.md) | Geography | Create a geography LineString from two Point, MultiPoint, or LineString geographies. | v1.9.1 |
| [ST_NPoints](Geography-Functions/ST_NPoints.md) | Integer | Return the number of points (vertices) in a geography. | v1.9.1 |
| [ST_NumGeometries](Geography-Functions/ST_NumGeometries.md) | Integer | Return the number of sub-geometries in a geography. | v1.9.1 |
+| [ST_X](Geography-Functions/ST_X.md) | Double | Return the longitude (X coordinate) of a point geography. | v1.9.1 |
+| [ST_Y](Geography-Functions/ST_Y.md) | Double | Return the latitude (Y coordinate) of a point geography. | v1.9.1 |
## Geography Predicates
diff --git a/docs/api/flink/Geography-Functions/ST_X.md b/docs/api/flink/Geography-Functions/ST_X.md
new file mode 100644
index 00000000000..a1793308396
--- /dev/null
+++ b/docs/api/flink/Geography-Functions/ST_X.md
@@ -0,0 +1,42 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
+
+# ST_X
+
+Introduction: Returns the longitude (X coordinate) of a point geography. Returns `NULL` for non-point geographies and empty points.
+
+Format:
+
+`ST_X (A: Geography)`
+
+Return type: `Double`
+
+Since: `v1.9.1`
+
+SQL Example
+
+```sql
+SELECT ST_X(ST_GeogFromWKT('POINT (-73.9857 40.7484)'));
+```
+
+Output:
+
+```
+-73.9857
+```
diff --git a/docs/api/flink/Geography-Functions/ST_Y.md b/docs/api/flink/Geography-Functions/ST_Y.md
new file mode 100644
index 00000000000..b4922c0f078
--- /dev/null
+++ b/docs/api/flink/Geography-Functions/ST_Y.md
@@ -0,0 +1,42 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
+
+# ST_Y
+
+Introduction: Returns the latitude (Y coordinate) of a point geography. Returns `NULL` for non-point geographies and empty points.
+
+Format:
+
+`ST_Y (A: Geography)`
+
+Return type: `Double`
+
+Since: `v1.9.1`
+
+SQL Example
+
+```sql
+SELECT ST_Y(ST_GeogFromWKT('POINT (-73.9857 40.7484)'));
+```
+
+Output:
+
+```
+40.7484
+```