【发布时间】:2016-09-01 09:00:42
【问题描述】:
我使用过 Neo4j 3.0.4 + Spatial。
我正在使用 curl,我已经打了这个电话:
addSimplePointLayer,(create nodes),addNodeToLayer
在这一点上,我尝试:
findGeometriesWithinDistance
并且工作完美(我需要将 lat,lon 更改为 lon,lat...)
但我需要在密码中使用,例如:
START n=node:geom('withinDistance:[40.39742917035895,-3.495200140744832, 100.0]')
WITH n
WHERE n:TypeX
RETURN n;
这永远不会返回结果,因为“geom”是空的。我没有任何索引,我尝试使用提供程序“空间”创建一个新索引,但不起作用(我已阅读该选项已删除)。
我可以将TypeX的所有节点都放在geom索引中吗?或者我可以在没有索引的情况下使用withinDistance吗? (我认为在哪里不能使用这个)
【问题讨论】:
-
我发现这个: MATCH (r:Restaurant) WHERE distance(point(r),point({latitude:40.39682978190974,longitude:-3.4897354662994173}))