neo4j/spatial — Issue #29: Enhance Spatial Index testing
Author: peterneubauer
Created: 2011-11-24 15:47:00+00:00
State: open

make sure this is tested:

curl -X POST http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer -H "Content-Type:application/json" -d '{"layer":"geom", "lat":"lat", "lon":"lon"}'
curl -X POST http://localhost:7474/db/data/node -H "Content-Type:application/json" -H "Accept:application/json" -d '{"lon": 15.2, "lat": 60.1}'
curl -X POST -H "Content-Type:application/json" -d '{"layer":"geom","node":"http://localhost:7474/db/data/node/5"}' http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer
curl -X POST -H "Content-Type:application/json" -d '{"layer":"geom","minx":15.0,"maxx":15.3,"miny":60.0,"maxy":60.2}' http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInLayer
#curl -X POST -H "Content-Type:application/json" -d '{"query":"start n = node:geom(\'bbox:[15.0,15.3,60.0,60.2]\') return n"}' http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/CypherPlugin/query