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

spatial.closest and spatial.withinDistance results not consistent? #375

Open
galtay opened this issue Dec 20, 2020 · 0 comments
Open

spatial.closest and spatial.withinDistance results not consistent? #375

galtay opened this issue Dec 20, 2020 · 0 comments

Comments

@galtay
Copy link

galtay commented Dec 20, 2020

Hello,

neo4j version: 3.5.25
spatial jar file: neo4j-spatial-0.26.2-neo4j-3.5.2-server-plugin.jar

I seem to be getting inconsistent results (or I'm not understanding the procedures) from spatial.closest and spatial.withinDistance. If I load the following shapefile (.shp is available after unzipping) via

https://www2.census.gov/geo/tiger/GENZ2019/shp/cb_2019_01_puma10_500k.zip

spatial.importShapefile

I get 38 nodes and 37 relationships.

When I query with

CALL spatial.withinDistance("cb_2019_01_puma10_500k", {longitude:-88, latitude:30}, 100.0)

I get 4 nodes back.

However, when I query with

CALL spatial.closest("cb_2019_01_puma10_500k", {longitude:-88, latitude:30}, 100.0)

I get zero nodes back. This seems to be the case for any value of distance I use as the final argument. Is this the intended behavior?

best,
-Gabriel

@galtay galtay changed the title spatial.closest and spatial withinDistance results not consistent? spatial.closest and spatial.withinDistance results not consistent? Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant