From fb4ccaa99b5acb27d4f328f9a429c9381997d465 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 24 Oct 2023 12:53:02 +1000 Subject: [PATCH] [DOCS] Fix spelling; pre-commit autoupdate (#1057) --- .pre-commit-config.yaml | 4 ++-- codespell.txt | 1 + docs/tutorial/viz.md | 2 +- .../org/apache/sedona/viz/sql/operator/VizPartitioner.scala | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d84cdd6d4..fd6afd8121 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: - id: identity - id: check-hooks-apply - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.2.6 hooks: - id: codespell name: Run codespell @@ -19,7 +19,7 @@ repos: entry: codespell --ignore-words=codespell.txt exclude: ^docs/image|^spark/common/src/test/resources - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-case-conflict # - id: check-docstring-first diff --git a/codespell.txt b/codespell.txt index 24a7c2fe99..4046ea997a 100644 --- a/codespell.txt +++ b/codespell.txt @@ -1,6 +1,7 @@ actualy afterall bu +celle eiter fpt limite diff --git a/docs/tutorial/viz.md b/docs/tutorial/viz.md index 6c11757aa6..9c0ac1f4f0 100644 --- a/docs/tutorial/viz.md +++ b/docs/tutorial/viz.md @@ -1,6 +1,6 @@ The page outlines the steps to visualize spatial data using SedonaViz. ==The example code is written in Scala but also works for Java==. -SedonaViz provides native support for general cartographic design by extending Sedona to process large-scale spatial data. It can visulize Spatial RDD and Spatial Queries and render super high resolution image in parallel. +SedonaViz provides native support for general cartographic design by extending Sedona to process large-scale spatial data. It can visualize Spatial RDD and Spatial Queries and render super high resolution image in parallel. SedonaViz offers Map Visualization SQL. This gives users a more flexible way to design beautiful map visualization effects including scatter plots and heat maps. SedonaViz RDD API is also available. diff --git a/spark/common/src/main/scala/org/apache/sedona/viz/sql/operator/VizPartitioner.scala b/spark/common/src/main/scala/org/apache/sedona/viz/sql/operator/VizPartitioner.scala index edc2689a45..bcaf1a54db 100644 --- a/spark/common/src/main/scala/org/apache/sedona/viz/sql/operator/VizPartitioner.scala +++ b/spark/common/src/main/scala/org/apache/sedona/viz/sql/operator/VizPartitioner.scala @@ -69,7 +69,7 @@ object VizPartitioner { val primaryIdPos = cursorRow.fieldIndex(Conf.PrimaryPID) val secondIdPos = cursorRow.fieldIndex(Conf.SecondaryPID) val geometry = cursorRow.getAs[Geometry](spatialColName).getEnvelopeInternal - // This is to find all seconary ids + // This is to find all secondary ids val matchedZones = secondaryPartitionTree.findZones(new QuadRectangle(geometry)).asScala matchedZones.foreach(secondaryZone => { var currentValues = cursorRow.toSeq.toBuffer