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/02/27 17:26:34 UTC
[sedona] branch master updated: [DOCS] Fix spelling (#774)
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 e6f8dc5f [DOCS] Fix spelling (#774)
e6f8dc5f is described below
commit e6f8dc5f7b31af5b76f19b347ab8388b7b2dd53c
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Tue Feb 28 03:26:28 2023 +1000
[DOCS] Fix spelling (#774)
---
R/R/sdf_interface.R | 4 ++--
binder/ApacheSedonaCore.ipynb | 2 +-
python/src/geom_buf.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/R/R/sdf_interface.R b/R/R/sdf_interface.R
index c0a5d5f7..df04f633 100644
--- a/R/R/sdf_interface.R
+++ b/R/R/sdf_interface.R
@@ -87,7 +87,7 @@ sdf_register.spatial_rdd <- function(x, name = NULL) {
as.spark.dataframe <- function(x, non_spatial_cols = NULL, name = NULL) {
sc <- spark_connection(x$.jobj)
- # Defaut keep all columns
+ # Default keep all columns
if (is.null(non_spatial_cols)) {
if (!is.null(invoke(x$.jobj, "%>%", list("fieldNames")))) { ## Only if dataset has field names
non_spatial_cols <- invoke(x$.jobj, "%>%", list("fieldNames"), list("toString")) ### Get columns names
@@ -95,7 +95,7 @@ as.spark.dataframe <- function(x, non_spatial_cols = NULL, name = NULL) {
non_spatial_cols <- strsplit(non_spatial_cols, ", ")[[1]] ##### turn into list
}
} else {
- stopifnot("non_spatial_cols needs to be a charcter vector (or NULL, default)" = is.character(non_spatial_cols))
+ stopifnot("non_spatial_cols needs to be a character vector (or NULL, default)" = is.character(non_spatial_cols))
}
sdf <- invoke_static(
diff --git a/binder/ApacheSedonaCore.ipynb b/binder/ApacheSedonaCore.ipynb
index 69fc6666..57983a81 100644
--- a/binder/ApacheSedonaCore.ipynb
+++ b/binder/ApacheSedonaCore.ipynb
@@ -1359,7 +1359,7 @@
"metadata": {},
"outputs": [],
"source": [
- "# Finds 5 closests points from PointRDD to given Point"
+ "# Finds 5 closest points from PointRDD to given Point"
]
},
{
diff --git a/python/src/geom_buf.c b/python/src/geom_buf.c
index e37fa28b..bfd6dfe3 100644
--- a/python/src/geom_buf.c
+++ b/python/src/geom_buf.c
@@ -263,7 +263,7 @@ SedonaErrorCode read_geom_buf_header(const char *buf, int buf_size,
cs_info->num_coords = num_coords;
/* geom_buf contains a series of serialized geometries. buf_coord is the
- * begining of its first child geometry, and buf_int is unused. */
+ * beginning of its first child geometry, and buf_int is unused. */
const void *buf_coord = buf + 8;
geom_buf->buf = (void *)buf;
geom_buf->buf_coord = (double *)(buf_coord);