neo4j-contrib / spatial

Neo4j Spatial is a library of utilities for Neo4j that faciliates the enabling of spatial operations on data. In particular you can add spatial indexes to already located data, and perform spatial operations on the data like searching for data within specified regions or within a specified distance of a point of interest. In addition classes are provided to expose the data to geotools and thereby to geotools enabled applications like geoserver and uDig.
http://neo4j-contrib.github.io/spatial
Other
777 stars 192 forks source link

Does spatial support '/schema/index' index? #184

Open ishare opened 9 years ago

ishare commented 9 years ago

I found you use legacy index in the doc, and the cypher query is not working. http://neo4j-contrib.github.io/spatial/#rest-api-create-a-spatial-index

How can I use latest index method '/schema/index', instead of '/index/node'? And is there a good way to support query filter by other properties? Thanks.

craigtaverner commented 9 years ago

The original spatial library is an external library that relied on the older IndexProvider API to act like a legacy index. The newer schema indexes are much harder to integrate with as an external library. So we are planning an all-new version of spatial that will be integrated into Cypher and include and index that acts much more similarly to the schema indexes. This work is on-going, but has no currently known release date, so I cannot comment on that.

Also, the /schema/index REST API is not necessarily going to be supported. The priority is to support schema indexes for spatial inside Cypher, with the REST API being something that has lower priority. Do you specifically need REST support for this? You will be able to create and delete these indexes from cypher, so I guess that will be sufficient?

ishare commented 9 years ago

It seems REST API is much more efficient than Cypher, I doubt why you choose to support Cypher first? And may I ask you, how can I get the distance between the target location, using cypher? Thanks