spatial icon indicating copy to clipboard operation
spatial copied to clipboard

How can I use neo4j-spatial in neo4j-ce.exe(3.0.6)

Open cara-shi opened this issue 9 years ago • 5 comments

Hi, I'm new in neo4j. I want to use neo4j-spatial in neo4j_3.0.6_community edition. I have copied the neo4j-spatial-0.23-neo4j-3.0.4-server-plugin.jar in plugins. But it doesn't work. How can I use neo4j-spatial in neo4j_3.0.6_community edition? Thanks

cara-shi avatar Nov 07 '16 09:11 cara-shi

Can you check your logs/neo4j.log file and see that it mentions loading the spatial plugin? There should be lines like:

2016-09-01 14:57:30.721+0000 INFO  Bolt enabled on localhost:7687.
2016-09-01 14:57:35.929+0000 INFO  Started.
2016-09-01 14:57:36.191+0000 INFO  Loaded server plugin "SpatialPlugin"
2016-09-01 14:57:36.192+0000 INFO    GraphDatabaseService.addSimplePointLayer: add a new layer specialized at storing simple point location data
2016-09-01 14:57:36.193+0000 INFO    GraphDatabaseService.addNodesToLayer: adds many geometry nodes (about 10k-50k) to a layer, as long as the nodes contain the geometry information appropriate to this layer.
2016-09-01 14:57:36.193+0000 INFO    GraphDatabaseService.addGeometryWKTToLayer: add a geometry specified in WKT format to a layer, encoding in the specified layers encoding schemea.
2016-09-01 14:57:36.193+0000 INFO    GraphDatabaseService.findGeometriesWithinDistance: search a layer for geometries within a distance of a point. To achieve more complex CQL searches, pre-define the dynamic layer with addCQLDynamicLayer.
2016-09-01 14:57:36.193+0000 INFO    GraphDatabaseService.getLayer: find an existing layer
2016-09-01 14:57:36.193+0000 INFO    GraphDatabaseService.updateGeometryFromWKT: update an existing geometry specified in WKT format. The layer must already contain the record.
2016-09-01 14:57:36.193+0000 INFO    GraphDatabaseService.findGeometriesIntersectingBBox: search a layer for geometries intersecting a bounding box. To achieve more complex CQL searches, pre-define the dynamic layer with addCQLDynamicLayer.
2016-09-01 14:57:36.193+0000 INFO    GraphDatabaseService.findClosestGeometries: search a layer for the closest geometries and return them.
2016-09-01 14:57:36.193+0000 INFO    GraphDatabaseService.addEditableLayer: add a new layer specialized at storing generic geometry data in WKB
2016-09-01 14:57:36.193+0000 INFO    GraphDatabaseService.addCQLDynamicLayer: add a new dynamic layer exposing a filtered view of an existing layer
2016-09-01 14:57:36.193+0000 INFO    GraphDatabaseService.addNodeToLayer: add a geometry node to a layer, as long as the node contains the geometry information appropriate to this layer.
2016-09-01 14:57:36.193+0000 INFO    GraphDatabaseService.findGeometriesInBBox: search a layer for geometries in a bounding box. To achieve more complex CQL searches, pre-define the dynamic layer with addCQLDynamicLayer.
2016-09-01 14:57:36.852+0000 INFO  Remote interface available at http://localhost:7474/

craigtaverner avatar Nov 09 '16 09:11 craigtaverner

I got it

cara-shi avatar Nov 14 '16 03:11 cara-shi

@craigtaverner Having a similar issue... Except...nothing in the logs. Ive tried building from source, as well as just dropping in the precompiled .jars.

Neo4j 3.1.1 on DigitalOcean No matter what I do the spatial plugin isn't showing up in the logs or the rest call. Was there a compatibility change between 3.0.x and 3.1.x?

ProjectCheshire avatar Feb 15 '17 03:02 ProjectCheshire

@ProjectCheshire Neo4j Spatial has not yet been ported to 3.1.x. There is are branches with that port if you want to try it. See:

  • https://github.com/neo4j-contrib/spatial/tree/3.1
  • https://github.com/sarmbruster/spatial/tree/3.1

craigtaverner avatar Feb 23 '17 15:02 craigtaverner

@cara-shi Is this issue still a problem for you or can I close it?

craigtaverner avatar Feb 23 '17 16:02 craigtaverner