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/12 22:45:26 UTC

[sedona] branch master updated: [DOCS] Fix spelling (#761)

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 a02629b5 [DOCS] Fix spelling (#761)
a02629b5 is described below

commit a02629b5096f8a29c9016aff0bf2d18ceae34e96
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Mon Feb 13 08:45:19 2023 +1000

    [DOCS] Fix spelling (#761)
---
 core/src/main/java/org/apache/sedona/core/enums/JoinBuildSide.java  | 2 +-
 .../formatMapper/shapefileParser/parseUtils/shp/ShpFileParser.java  | 2 +-
 .../apache/sedona/core/spatialPartitioning/VoronoiPartitioning.java | 2 +-
 .../src/main/java/org/apache/sedona/core/spatialRDD/SpatialRDD.java | 2 +-
 .../apache/sedona/core/geometryObjects/SpatialIndexSerdeTest.java   | 2 +-
 .../java/org/apache/sedona/core/spatialOperator/PointJoinTest.java  | 6 +++---
 .../sedona/core/spatialPartitioning/quadtree/QuadRectangleTest.java | 2 +-
 docs-overrides/main.html                                            | 2 +-
 docs/setup/install-python.md                                        | 2 +-
 docs/tutorial/jupyter-notebook.md                                   | 2 +-
 10 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/core/src/main/java/org/apache/sedona/core/enums/JoinBuildSide.java b/core/src/main/java/org/apache/sedona/core/enums/JoinBuildSide.java
index c73b76d8..13c83df7 100644
--- a/core/src/main/java/org/apache/sedona/core/enums/JoinBuildSide.java
+++ b/core/src/main/java/org/apache/sedona/core/enums/JoinBuildSide.java
@@ -23,7 +23,7 @@ import java.io.Serializable;
 
 /**
  * The enumerator type of JoinQuery JoinBuildSide. Each join query has two sides, left shape and right shape.
- * The join side desides which side the spatial index is built on. The other side will be streamed out.
+ * The join side decides which side the spatial index is built on. The other side will be streamed out.
  */
 public enum JoinBuildSide
         implements Serializable
diff --git a/core/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/parseUtils/shp/ShpFileParser.java b/core/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/parseUtils/shp/ShpFileParser.java
index 41aaa196..705262f5 100644
--- a/core/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/parseUtils/shp/ShpFileParser.java
+++ b/core/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/parseUtils/shp/ShpFileParser.java
@@ -36,7 +36,7 @@ public class ShpFileParser
      */
     private final SafeReader reader;
     /**
-     * lenth of file in bytes
+     * length of file in bytes
      */
     private long fileLength = 0;
     /**
diff --git a/core/src/main/java/org/apache/sedona/core/spatialPartitioning/VoronoiPartitioning.java b/core/src/main/java/org/apache/sedona/core/spatialPartitioning/VoronoiPartitioning.java
index 4c2c7d92..928bddf6 100644
--- a/core/src/main/java/org/apache/sedona/core/spatialPartitioning/VoronoiPartitioning.java
+++ b/core/src/main/java/org/apache/sedona/core/spatialPartitioning/VoronoiPartitioning.java
@@ -60,7 +60,7 @@ public class VoronoiPartitioning
         ArrayList<Point> subSampleList = new ArrayList<Point>();
         MultiPoint mp;
 
-        //Take a subsample accoring to the partitions
+        //Take a subsample according to the partitions
         for (int i = 0; i < samples.size(); i = i + samples.size() / partitions) {
             Envelope envelope = samples.get(i);
             Coordinate coordinate = new Coordinate((envelope.getMinX() + envelope.getMaxX()) / 2.0, (envelope.getMinY() + envelope.getMaxY()) / 2.0);
diff --git a/core/src/main/java/org/apache/sedona/core/spatialRDD/SpatialRDD.java b/core/src/main/java/org/apache/sedona/core/spatialRDD/SpatialRDD.java
index edfa60e7..20720b38 100644
--- a/core/src/main/java/org/apache/sedona/core/spatialRDD/SpatialRDD.java
+++ b/core/src/main/java/org/apache/sedona/core/spatialRDD/SpatialRDD.java
@@ -216,7 +216,7 @@ public class SpatialRDD<T extends Geometry>
             throw new Exception("[AbstractSpatialRDD][spatialPartitioning] SpatialRDD boundary is null. Please call analyze() first.");
         }
         if (this.approximateTotalCount == -1) {
-            throw new Exception("[AbstractSpatialRDD][spatialPartitioning] SpatialRDD total count is unkown. Please call analyze() first.");
+            throw new Exception("[AbstractSpatialRDD][spatialPartitioning] SpatialRDD total count is unknown. Please call analyze() first.");
         }
 
         //Calculate the number of samples we need to take.
diff --git a/core/src/test/java/org/apache/sedona/core/geometryObjects/SpatialIndexSerdeTest.java b/core/src/test/java/org/apache/sedona/core/geometryObjects/SpatialIndexSerdeTest.java
index b44ee215..acb08736 100644
--- a/core/src/test/java/org/apache/sedona/core/geometryObjects/SpatialIndexSerdeTest.java
+++ b/core/src/test/java/org/apache/sedona/core/geometryObjects/SpatialIndexSerdeTest.java
@@ -210,7 +210,7 @@ public class SpatialIndexSerdeTest
             }
             return strtree.query(envelope);
         }
-        else { throw new UnsupportedOperationException("unsupport index type"); }
+        else { throw new UnsupportedOperationException("unsupported index type"); }
     }
 
     private SpatialIndex generateIndex(int geomNum, Class aClass)
diff --git a/core/src/test/java/org/apache/sedona/core/spatialOperator/PointJoinTest.java b/core/src/test/java/org/apache/sedona/core/spatialOperator/PointJoinTest.java
index ea2c10d3..b3820598 100644
--- a/core/src/test/java/org/apache/sedona/core/spatialOperator/PointJoinTest.java
+++ b/core/src/test/java/org/apache/sedona/core/spatialOperator/PointJoinTest.java
@@ -94,7 +94,7 @@ public class PointJoinTest
      * @throws Exception the exception
      */
     @Test
-    public void testNestedLoopWithRectanges()
+    public void testNestedLoopWithRectangles()
             throws Exception
     {
         RectangleRDD queryRDD = createRectangleRDD();
@@ -135,7 +135,7 @@ public class PointJoinTest
      * @throws Exception the exception
      */
     @Test
-    public void testRTreeWithRectanges()
+    public void testRTreeWithRectangles()
             throws Exception
     {
         RectangleRDD queryRDD = createRectangleRDD();
@@ -163,7 +163,7 @@ public class PointJoinTest
      * @throws Exception the exception
      */
     @Test
-    public void testQuadTreeWithRectanges()
+    public void testQuadTreeWithRectangles()
             throws Exception
     {
         RectangleRDD queryRDD = createRectangleRDD();
diff --git a/core/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadRectangleTest.java b/core/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadRectangleTest.java
index d9c105e2..08d2314b 100644
--- a/core/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadRectangleTest.java
+++ b/core/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadRectangleTest.java
@@ -32,7 +32,7 @@ public class QuadRectangleTest
         QuadRectangle r1 = makeRect(0, 0, 10, 10);
         QuadRectangle r2 = makeRect(0, 0, 10, 10);
 
-        // contains rectange
+        // contains rectangle
         assertTrue(r1.contains(r2));
 
         // contains point
diff --git a/docs-overrides/main.html b/docs-overrides/main.html
index feece321..136f8ef8 100644
--- a/docs-overrides/main.html
+++ b/docs-overrides/main.html
@@ -29,7 +29,7 @@
           <div class="tx-hero__content">
             <p>{{ config.site_description }}</p>
             <p>Set up Scala and Java API in 5 minutes with Maven and SBT.</p>
-            <p>Python and R API are also available on PyPi and CRAN.</p>
+            <p>Python and R API are also available on PyPI and CRAN.</p>
             <a href="{{ page.next_page.url | url }}" title="{{ page.next_page.title | striptags }}" class="md-button md-button--primary">
               Get started
             </a>
diff --git a/docs/setup/install-python.md b/docs/setup/install-python.md
index 69d2f35b..9e653fa4 100644
--- a/docs/setup/install-python.md
+++ b/docs/setup/install-python.md
@@ -10,7 +10,7 @@ You need to install necessary packages if your system does not have them install
 
 ### Install sedona
 
-* Installing from PyPi repositories. You can find the latest Sedona Python on [PyPi](https://pypi.org/project/apache-sedona/). [There is an known issue in Sedona v1.0.1 and earlier versions](../release-notes/#known-issue).
+* Installing from PyPI repositories. You can find the latest Sedona Python on [PyPI](https://pypi.org/project/apache-sedona/). [There is an known issue in Sedona v1.0.1 and earlier versions](../release-notes/#known-issue).
 
 ```bash
 pip install apache-sedona
diff --git a/docs/tutorial/jupyter-notebook.md b/docs/tutorial/jupyter-notebook.md
index 18eb5635..318c073c 100644
--- a/docs/tutorial/jupyter-notebook.md
+++ b/docs/tutorial/jupyter-notebook.md
@@ -8,7 +8,7 @@ Sedona Python provides a number of [Jupyter Notebook examples](https://github.co
 Please use the following steps to run Jupyter notebook with Pipenv on your machine
 
 1. Clone Sedona GitHub repo or download the source code
-2. Install Sedona Python from PyPi or GitHub source: Read [Install Sedona Python](../../setup/install-python/#install-sedona) to learn.
+2. Install Sedona Python from PyPI or GitHub source: Read [Install Sedona Python](../../setup/install-python/#install-sedona) to learn.
 3. Prepare python-adapter jar: Read [Install Sedona Python](../../setup/install-python/#prepare-python-adapter-jar) to learn.
 4. Setup pipenv python version. Please use your desired Python version.
 ```bash