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/11 09:54:29 UTC
[sedona] branch master updated: [DOCS] Fix spelling (#760)
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 41e42c56 [DOCS] Fix spelling (#760)
41e42c56 is described below
commit 41e42c560cec06d308cfc6d262c1abf75fa4a5fa
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Sat Feb 11 19:54:24 2023 +1000
[DOCS] Fix spelling (#760)
---
binder/ApacheSedonaCore.ipynb | 12 ++++++------
binder/ApacheSedonaRaster.ipynb | 8 ++++----
.../org/apache/sedona/common/utils/GeometrySplitter.java | 4 ++--
flink/src/test/java/org/apache/sedona/flink/TestBase.java | 6 +++---
python/sedona/sql/dataframe_api.py | 2 +-
python/sedona/sql/st_constructors.py | 2 +-
python/sedona/sql/st_functions.py | 8 ++++----
python/sedona/sql/st_predicates.py | 2 +-
python/sedona/utils/geometry_serde.py | 2 +-
9 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/binder/ApacheSedonaCore.ipynb b/binder/ApacheSedonaCore.ipynb
index 2470bf48..69fc6666 100644
--- a/binder/ApacheSedonaCore.ipynb
+++ b/binder/ApacheSedonaCore.ipynb
@@ -285,7 +285,7 @@
}
],
"source": [
- "# Geting source epsg code\n",
+ "# Getting source epsg code\n",
"point_rdd.getSourceEpsgCode()"
]
},
@@ -306,7 +306,7 @@
}
],
"source": [
- "# Geting target epsg code\n",
+ "# Getting target epsg code\n",
"point_rdd.getTargetEpsgCode()"
]
},
@@ -1072,7 +1072,7 @@
}
],
"source": [
- "# getting distance useing SpatialObjects\n",
+ "# getting distance using SpatialObjects\n",
"result.map(lambda x: x[0].geom.distance(x[1].geom)).take(5)"
]
},
@@ -1107,7 +1107,7 @@
"metadata": {},
"outputs": [],
"source": [
- "# Base on result you can create DataFrame object, using map function and buld DataFrame from RDD"
+ "# Base on result you can create DataFrame object, using map function and build DataFrame from RDD"
]
},
{
@@ -1874,7 +1874,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "## Coverting RDD Spatial join result to DF directly, avoiding jvm python serde"
+ "## Converting RDD Spatial join result to DF directly, avoiding jvm python serde"
]
},
{
@@ -2015,7 +2015,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "# Coverting RDD Spatial join result to DF directly, avoiding jvm python serde"
+ "# Converting RDD Spatial join result to DF directly, avoiding jvm python serde"
]
},
{
diff --git a/binder/ApacheSedonaRaster.ipynb b/binder/ApacheSedonaRaster.ipynb
index 624eabb9..77bc8097 100644
--- a/binder/ApacheSedonaRaster.ipynb
+++ b/binder/ApacheSedonaRaster.ipynb
@@ -76,7 +76,7 @@
"source": [
"# Geotiff Loader \n",
"\n",
- "1. Loader takes as input a path to directory which contains geotiff files or a parth to particular geotiff file\n",
+ "1. Loader takes as input a path to directory which contains geotiff files or a path to particular geotiff file\n",
"2. Loader will read geotiff image in a struct named image which contains multiple fields as shown in the schema below which can be extracted using spark SQL"
]
},
@@ -170,7 +170,7 @@
}
],
"source": [
- "''' RS_GetBand() will fetch a particular band from given data array which is the concatination of all the bands'''\n",
+ "''' RS_GetBand() will fetch a particular band from given data array which is the concatenation of all the bands'''\n",
"\n",
"df = df.selectExpr(\"Geom\",\"RS_GetBand(data, 1,bands) as Band1\",\"RS_GetBand(data, 2,bands) as Band2\",\"RS_GetBand(data, 3,bands) as Band3\", \"RS_GetBand(data, 4,bands) as Band4\")\n",
"df.createOrReplaceTempView(\"allbands\")\n",
@@ -556,7 +556,7 @@
}
],
"source": [
- "''' RS_Count() will calculate the total number of occurence of a target value'''\n",
+ "''' RS_Count() will calculate the total number of occurrence of a target value'''\n",
"countDF = df.selectExpr(\"RS_Count(RS_GreaterThan(Band1,1000.0), 1.0) as count\")\n",
"countDF.show(5)"
]
@@ -669,7 +669,7 @@
"\n",
"1. Normalize the bands in range [0-255] if values are greater than 255\n",
"2. Process image using RS_Base64() which converts in into a base64 string\n",
- "3. Embedd results of RS_Base64() in RS_HTML() to embedd into IPython notebook\n",
+ "3. Embed results of RS_Base64() in RS_HTML() to embed into IPython notebook\n",
"4. Process results of RS_HTML() as below:"
]
},
diff --git a/common/src/main/java/org/apache/sedona/common/utils/GeometrySplitter.java b/common/src/main/java/org/apache/sedona/common/utils/GeometrySplitter.java
index b80986fb..09e6e1e2 100644
--- a/common/src/main/java/org/apache/sedona/common/utils/GeometrySplitter.java
+++ b/common/src/main/java/org/apache/sedona/common/utils/GeometrySplitter.java
@@ -59,7 +59,7 @@ public final class GeometrySplitter {
* restrictions on the blade for polygonal input geometry.
* <p>
* The result will be null if the input geometry and blade are either
- * invalid in general or in relation to eachother. Otherwise, the result
+ * invalid in general or in relation to each other. Otherwise, the result
* will always be a MultiLineString or MultiPolygon depending on the input,
* and even if the result is a single geometry.
*
@@ -83,7 +83,7 @@ public final class GeometrySplitter {
* Split linear input geometry by the blade geometry.
* Input geometry is assumed to be either a LineString,
* MultiLineString, or a homogeneous collection of lines in a
- * GeometryCollection. The blade geometry can be any indivdual
+ * GeometryCollection. The blade geometry can be any individual
* puntal, lineal, or polygonal geometry or homogeneous collection
* of those geometries. Blades that are polygonal will use their
* boundary for the split. Will always return a MultiLineString.
diff --git a/flink/src/test/java/org/apache/sedona/flink/TestBase.java b/flink/src/test/java/org/apache/sedona/flink/TestBase.java
index 30650f94..86d1774f 100644
--- a/flink/src/test/java/org/apache/sedona/flink/TestBase.java
+++ b/flink/src/test/java/org/apache/sedona/flink/TestBase.java
@@ -71,7 +71,7 @@ public class TestBase {
static List<Row> createPointText(int size){
List<Row> data = new ArrayList<>();
for (int i = 0; i < size; i++) {
- // Create a numer of points (1, 1) (2, 2) ...
+ // Create a number of points (1, 1) (2, 2) ...
data.add(Row.of(i + "," + i, "point" + i, timestamp_base + time_interval * 1000 * i));
}
return data;
@@ -81,7 +81,7 @@ public class TestBase {
List<Point> data = new ArrayList<>();
GeometryFactory geomFact = new GeometryFactory();
for (int i = 0; i < size; i++) {
- // Create a numer of points (1, 1) (2, 2) ...
+ // Create a number of points (1, 1) (2, 2) ...
data.add(geomFact.createPoint(new Coordinate(i, i)));
}
return data;
@@ -104,7 +104,7 @@ public class TestBase {
static List<Row> createPointWKT(int size){
List<Row> data = new ArrayList<>();
for (int i = 0; i < size; i++) {
- // Create a numer of points (1, 1) (2, 2) ...
+ // Create a number of points (1, 1) (2, 2) ...
data.add(Row.of("POINT (" + i + " " + i +")", "point" + i, timestamp_base + time_interval * 1000 * i));
}
return data;
diff --git a/python/sedona/sql/dataframe_api.py b/python/sedona/sql/dataframe_api.py
index 50092615..62450b1f 100644
--- a/python/sedona/sql/dataframe_api.py
+++ b/python/sedona/sql/dataframe_api.py
@@ -53,7 +53,7 @@ def call_sedona_function(object_name: str, function_name: str, args: Union[Any,
if spark is None:
raise ValueError("No active spark session was detected. Unable to call sedona function.")
- # apparently a Column is an Iterable so we need to check for it explicitely
+ # apparently a Column is an Iterable so we need to check for it explicitly
if (not isinstance(args, Iterable)) or isinstance(args, str) or isinstance(args, Column):
args = [args]
diff --git a/python/sedona/sql/st_constructors.py b/python/sedona/sql/st_constructors.py
index 62a8e5c6..4981894e 100644
--- a/python/sedona/sql/st_constructors.py
+++ b/python/sedona/sql/st_constructors.py
@@ -147,7 +147,7 @@ def ST_LineFromText(wkt: ColumnOrName) -> Column:
@validate_argument_types
def ST_LineStringFromText(coords: ColumnOrName, delimiter: ColumnOrName) -> Column:
- """Generate a linestring geometry column from a list of coords seperated by a delimiter
+ """Generate a linestring geometry column from a list of coords separated by a delimiter
in a string column.
:param coords: String column containing a list of coords.
diff --git a/python/sedona/sql/st_functions.py b/python/sedona/sql/st_functions.py
index 43bb638c..6e5932af 100644
--- a/python/sedona/sql/st_functions.py
+++ b/python/sedona/sql/st_functions.py
@@ -184,7 +184,7 @@ def ST_AsEWKT(geometry: ColumnOrName) -> Column:
:param geometry: Geometry column to generate EWKT for.
:type geometry: ColumnOrName
- :return: Extended Well-Known Text represenation of geometry as a string column.
+ :return: Extended Well-Known Text representation of geometry as a string column.
:rtype: Column
"""
return _call_st_function("ST_AsEWKT", geometry)
@@ -192,7 +192,7 @@ def ST_AsEWKT(geometry: ColumnOrName) -> Column:
@validate_argument_types
def ST_AsGeoJSON(geometry: ColumnOrName) -> Column:
- """Generate the GeoJSON style represenation of a geometry column.
+ """Generate the GeoJSON style representation of a geometry column.
:param geometry: Geometry column to generate GeoJSON for.
:type geometry: ColumnOrName
@@ -282,7 +282,7 @@ def ST_Buffer(geometry: ColumnOrName, buffer: ColumnOrNameOrNumber) -> Column:
@validate_argument_types
def ST_BuildArea(geometry: ColumnOrName) -> Column:
- """Generate a geometry described by the consituent linework of the input
+ """Generate a geometry described by the constituent linework of the input
geometry column.
:param geometry: Linestring or multilinestring geometry column to use as input.
@@ -311,7 +311,7 @@ def ST_Collect(*geometries: ColumnOrName) -> Column:
multi-geometry or geometry collection.
:param geometries: Either a single geometry column that holds an array of geometries or multiple geometry columns.
- :return: If the types of geometries are homogenous then a multi-geometry is returned, otherwise a geometry collection is returned.
+ :return: If the types of geometries are homogeneous then a multi-geometry is returned, otherwise a geometry collection is returned.
:rtype: Column
"""
if len(geometries) == 1:
diff --git a/python/sedona/sql/st_predicates.py b/python/sedona/sql/st_predicates.py
index 2a979c70..fe14494c 100644
--- a/python/sedona/sql/st_predicates.py
+++ b/python/sedona/sql/st_predicates.py
@@ -82,7 +82,7 @@ def ST_Disjoint(a: ColumnOrName, b: ColumnOrName) -> Column:
@validate_argument_types
def ST_Equals(a: ColumnOrName, b: ColumnOrName) -> Column:
- """Check whether two geometries are equal regardles of vertex ordering.
+ """Check whether two geometries are equal regardless of vertex ordering.
:param a: One geometry column to check.
:type a: ColumnOrName
diff --git a/python/sedona/utils/geometry_serde.py b/python/sedona/utils/geometry_serde.py
index 0d916cea..174b6746 100644
--- a/python/sedona/utils/geometry_serde.py
+++ b/python/sedona/utils/geometry_serde.py
@@ -408,7 +408,7 @@ def serialize_polygon(geom: Polygon) -> bytes:
coord_bytes = b''
ring_lengths = []
- offset = 9 # 1 byte endianess + 4 byte geom type + 4 byte num rings
+ offset = 9 # 1 byte endianness + 4 byte geom type + 4 byte num rings
bytes_per_coord = geom._ndim * 8
num_coords = 0