Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Fix spelling #1507

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/sql/Raster-writer.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ The newly created DataFrame can be written to disk again but must be under a dif

Introduction: Converts a Geometry to a Raster dataset. Defaults to using `1.0` for cell `value` and `null` for `noDataValue` if not provided. Supports all geometry types.
The `pixelType` argument defines data type of the output raster. This can be one of the following, D (double), F (float), I (integer), S (short), US (unsigned short) or B (byte).
The `useGeomeryExtent` argument defines the extent of the resultant raster. When set to `true`, it corresponds to the extent of `geom`, and when set to false, it corresponds to the extent of `raster`. Default value is `true` if not set.
The `useGeometryExtent` argument defines the extent of the resultant raster. When set to `true`, it corresponds to the extent of `geom`, and when set to false, it corresponds to the extent of `raster`. Default value is `true` if not set.
Format:

```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ public void testReadToPolygonRDD() throws Exception {
final Iterator<String> featureIterator = featureTexts.iterator();

PolygonRDD spatialRDD = ShapefileReader.readToPolygonRDD(sc, inputLocation);
SpatialRDD<Geometry> geomeryRDD = ShapefileReader.readToGeometryRDD(sc, inputLocation);
SpatialRDD<Geometry> geometryRDD = ShapefileReader.readToGeometryRDD(sc, inputLocation);

long count =
RangeQuery.SpatialRangeQuery(spatialRDD, new Envelope(-180, 180, -90, 90), false, false)
.count();
assertEquals(spatialRDD.rawSpatialRDD.count(), count);

for (Geometry geometry : geomeryRDD.rawSpatialRDD.collect()) {
for (Geometry geometry : geometryRDD.rawSpatialRDD.collect()) {
assertEquals(featureIterator.next(), geometry.toText());
}
}
Expand All @@ -180,13 +180,13 @@ public void testReadToLineStringRDD() throws Exception {
features.close();
final Iterator<String> featureIterator = featureTexts.iterator();
LineStringRDD spatialRDD = ShapefileReader.readToLineStringRDD(sc, inputLocation);
SpatialRDD<Geometry> geomeryRDD = ShapefileReader.readToGeometryRDD(sc, inputLocation);
SpatialRDD<Geometry> geometryRDD = ShapefileReader.readToGeometryRDD(sc, inputLocation);
long count =
RangeQuery.SpatialRangeQuery(spatialRDD, new Envelope(-180, 180, -90, 90), false, false)
.count();
assertEquals(spatialRDD.rawSpatialRDD.count(), count);

for (Geometry geometry : geomeryRDD.rawSpatialRDD.collect()) {
for (Geometry geometry : geometryRDD.rawSpatialRDD.collect()) {
assertEquals(featureIterator.next(), geometry.toText());
}
}
Expand Down Expand Up @@ -240,8 +240,8 @@ public void testReadToPointRDD_MultiPoint() throws IOException {
features.close();
final Iterator<String> featureIterator = featureTexts.iterator();
PointRDD spatialRDD = ShapefileReader.readToPointRDD(sc, inputLocation);
SpatialRDD<Geometry> geomeryRDD = ShapefileReader.readToGeometryRDD(sc, inputLocation);
for (Geometry geometry : geomeryRDD.rawSpatialRDD.collect()) {
SpatialRDD<Geometry> geometryRDD = ShapefileReader.readToGeometryRDD(sc, inputLocation);
for (Geometry geometry : geometryRDD.rawSpatialRDD.collect()) {
assertEquals(featureIterator.next(), geometry.toText());
}
}
Expand Down
Loading