Skip to content

Commit

Permalink
[DOCS] Fix spelling in Java files (#1624)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Oct 13, 2024
1 parent 1fbac22 commit 16dbd9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public static boolean geometryIsPolygonal(Geometry geometry) {
}

/**
* Checks if the geoemetry pair - <code>left</code> and <code>right</code> - should be handled be
* Checks if the geometry pair - <code>left</code> and <code>right</code> - should be handled be
* the current partition - <code>extent</code>.
*
* @param left
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public H3UtilException(String message, Throwable cause) {
cellSizeMap.put(15, 0.0004567448929842399);
}

public static LatLng coordindateToLatLng(Coordinate coordinate) {
public static LatLng coordinateToLatLng(Coordinate coordinate) {
return new LatLng(coordinate.getY(), coordinate.getX());
}

Expand All @@ -96,13 +96,13 @@ public static List<Long> polygonToCells(Polygon polygon, int level, boolean full
try {
List<LatLng> shell =
Arrays.stream(polygon.getExteriorRing().getCoordinates())
.map(H3Utils::coordindateToLatLng)
.map(H3Utils::coordinateToLatLng)
.collect(Collectors.toList());
List<List<LatLng>> holes = new ArrayList<>();
for (int i = 0; i < polygon.getNumInteriorRing(); i++) {
holes.add(
Arrays.stream(polygon.getInteriorRingN(i).getCoordinates())
.map(H3Utils::coordindateToLatLng)
.map(H3Utils::coordinateToLatLng)
.collect(Collectors.toList()));
}
// H3 polyfill only include hexagons with centroid within the polygon, we fix by generating
Expand Down

0 comments on commit 16dbd9f

Please sign in to comment.