Skip to content

Commit cd5a45b

Browse files
author
Ahmed Eldawy
committed
Minor changes to display messages for examples
Fixed a bug with autodetecting input shape
1 parent 9a2b8d3 commit cd5a45b

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

src/operations/edu/umn/cs/spatialHadoop/CommandLineArguments.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public Shape getShape(boolean autodetect) {
226226
}
227227
}
228228

229-
if (autodetect && shapeType.getLength() == 0) {
229+
if (autodetect && shapeType.getLength() == 0 && getPath() != null) {
230230
// Shape type not found in parameters. Try to infer from a line in input
231231
// file
232232
Path in_file = getPath();

src/operations/edu/umn/cs/spatialHadoop/operations/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static void main(String[] args) {
1818
try {
1919

2020
pgd.addClass("rangequery", RangeQuery.class,
21-
"Finds all objects in the query range given by rect:x1,y1,w,h");
21+
"Finds all objects in the query range given by a rectangle");
2222

2323
pgd.addClass("knn", KNN.class,
2424
"Finds the k nearest neighbor in a file to a point");

src/operations/edu/umn/cs/spatialHadoop/operations/ProgramDriver.java

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)