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
778 stars 192 forks source link

Rest incompatibility issue with Array BBOX #321

Closed mmeloni closed 7 years ago

mmeloni commented 7 years ago

I all, when I use library like Neo4j-PHP-OGM that add an ORM layer on top of neo4j I'm sperimenting this issue:

NB: I'have extract a curl call to rest endpoint to semplify the situation:

curl -X POST -H "Content-Type: application/json" -d '{"method":"PUT","to":"\/node\/47593\/properties","body":{"bbox":[126,-2.08333,126,-2.08333]},"id":8}' 127.0.0.1:7474/db/data/batch "message" : "Invalid JSON array in POST body: {\"bbox\":[126,-2.08333,126,-2.08333] "exception" : "BatchOperationFailedException", "fullname" : "org.neo4j.server.rest.domain.BatchOperationFailedException" I have found an issue that seems related in neo4j core:

#689

Neo4j version: 3.1.4 enterprise edition Spatial plugin version: 0.24.1

mmeloni commented 7 years ago

Close, I think the problem is https://github.com/jadell/neo4jphp/pull/188