Skip to content

Commit dc4eda3

Browse files
committed
Fix for bug reported by community (withinDistance)
1 parent c1bb41c commit dc4eda3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/org/neo4j/gis/spatial/pipes/GeoPipeline.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,7 @@ public static GeoPipeline startNearestNeighborLatLonSearch(Layer layer, Coordina
362362
Envelope searchWindow = OrthodromicDistance.suggestSearchWindow(point, maxDistanceInKm);
363363
GeoPipeline pipeline = start(layer, new SearchIntersectWindow(layer, searchWindow))
364364
.calculateOrthodromicDistance(point);
365-
366-
if (layer.getGeometryType() != null && layer.getGeometryType() == Constants.GTYPE_POINT) {
367-
pipeline = pipeline.propertyFilter(OrthodromicDistance.DISTANCE, maxDistanceInKm, FilterPipe.Filter.LESS_THAN_EQUAL);
368-
}
369-
370-
return pipeline;
365+
return pipeline.propertyFilter(OrthodromicDistance.DISTANCE, maxDistanceInKm, FilterPipe.Filter.LESS_THAN_EQUAL);
371366
}
372367

373368
/**

0 commit comments

Comments
 (0)