0
我剛剛開始玩Neo4j圖形數據庫爲我正在建設一個新的社交網站。一切工作都非常順利,直到我想使用空間插件才能以高效的方式提出諸如「在距離X點2公里內的所有用戶」這樣的問題。Neo4j空間addsimplepointlayer
我使用windows和neo4j-spatial-0.12服務器插件的neo4j-community-2.0.0二進制文件。
問:打通REST的API/db/data中給了我:
"extensions": {
"SpatialPlugin": {
"addNodeToLayer": "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer",
"findGeometriesWithinDistance": "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance",
"findGeometriesInBBox": "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInBBox",
"addSimplePointLayer": "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer",
"getLayer": "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/getLayer",
"addGeometryWKTToLayer": "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addGeometryWKTToLayer",
"addCQLDynamicLayer": "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addCQLDynamicLayer",
"addEditableLayer": "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addEditableLayer",
"updateGeometryFromWKT": "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/updateGeometryFromWKT"
}
},
...但是當我嘗試添加一個簡單點的層:
:POST http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer
{
"layer" : "geom",
"lat" : "lat",
"lon" : "lon"
}
服務器迴應500 :(任何人有什麼錯誤的線索/我可以得到關於這個問題的更多信息?
這也解釋了它,非常感謝亞當! –