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

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

Open cara-shi opened 7 years ago

cara-shi commented 7 years ago

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

craigtaverner commented 7 years ago

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/
cara-shi commented 7 years ago

I got it

ProjectCheshire commented 7 years ago

@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?

craigtaverner commented 7 years ago

@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:

craigtaverner commented 7 years ago

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