Skip to content

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

@galtay

Description

@galtay

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions