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/03/01 18:42:01 UTC
[sedona] branch master updated: [SEDONA-255] R – Translation issue for ST_Point and ST_PolygonFromEnvelope (#781)
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 2d8709d3 [SEDONA-255] R – Translation issue for ST_Point and ST_PolygonFromEnvelope (#781)
2d8709d3 is described below
commit 2d8709d312ea25c7196028b83d950d0ac4c0b354
Author: gregleleu <33...@users.noreply.github.com>
AuthorDate: Wed Mar 1 13:41:55 2023 -0500
[SEDONA-255] R – Translation issue for ST_Point and ST_PolygonFromEnvelope (#781)
---
R/R/dependencies.R | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/R/R/dependencies.R b/R/R/dependencies.R
index 5015abb3..216e6739 100644
--- a/R/R/dependencies.R
+++ b/R/R/dependencies.R
@@ -139,28 +139,6 @@ sedona_initialize_spark_connection <- function(sc) {
sedona_dbplyr_sql_variant <- function() {
list(
scalar = list(
- ST_Point = function(x, y) {
- dbplyr::build_sql(
- "ST_Point(CAST(",
- x,
- " AS DECIMAL(24, 20)), CAST(",
- y,
- " AS DECIMAL(24, 20)))"
- )
- },
- ST_PolygonFromEnvelope = function(min_x, min_y, max_x, max_y) {
- dbplyr::build_sql(
- "ST_PolygonFromEnvelope(CAST(",
- min_x,
- " AS DECIMAL(24, 20)), CAST(",
- min_y,
- " AS DECIMAL(24, 20)), CAST(",
- max_x,
- " AS DECIMAL(24, 20)), CAST(",
- max_y,
- " AS DECIMAL(24, 20)))"
- )
- },
ST_Buffer = function(geometry, buffer) {
dbplyr::build_sql(
"ST_Buffer(", geometry, ", CAST(", buffer, " AS DOUBLE))"