spatial
spatial copied to clipboard
I can't load shapefiles which I had imported into Neo4j on GeoServer
I create workspace and datastore referring to the neo4j database folder , but I found that still unable to view the layer in database on GeoServer. And one more question: The parameters of connection: Does "The directory path of the Neo4j database: *" meas the directory of the graph.db , like d:/neo4j/data/databases/graph.db/
Can you give more details on your environment? Are you just using the database through Cypher, or perhaps you have integrated this into some other system? Your use of the word 'datastore' makes me suspect you are using a geotools app, like uDig or GeoServer? Could you clarify?
I’m sorry about that I didn't describe the problem clearly. I intergrated neo4j into GeoServer 2.13.0 OS: OSX 10.13 Java JDK :1.8 Neo4j version: 3.3.5 When I add the datastore,it seems unable to load the layers that I had imported into neo4j database.
I do not currently have a development environment suitable for testing against GeoServer, so I cannot help at this point. However, I could give suggestions for things you could do to investigate this in more detail:
- Were there any error messages in the neo4j log files? Or the GeoServer logfiles?
- Can you open the database in a normal instance of Neo4j Server, and use the spatial procedures to investigate what was successfully loaded (eg. list layers, and query layers for geometries to see what is really there). You can also explore the graph with Cypher and see what the graph structure looks like, and if there are any obvious mistakes in the structure.
Let me know how this goes, and if you have more information for me to track. Hopefully at some point in the near future I can setup a development environment with GeoServer again and try and investigate this myself.
Hi, I got the solution, just build the spatial jar for my version of Neo4j and used Geoserver 2.8.4 for the Neo4j 3.5.12 and placed all jars in C:\XXXXXXX\neo4j\neo4jDatabases\database-38a0b035-445b-423d-b362-de8efc2234c0\installation-3.5.12\lib to C:\Program Files (x86)\GeoServer 2.8.4\webapps\geoserver\WEB-INF\lib, reading can be done from here https://libraries.io/github/jtimothywilliams/nss
@GISConsortium
If this did work well..you're the master! I busy with this issue also. I did find out about missing repositories. I did upgrade my version from 2.18.1 to 2.19.1
Also added this in the pom.xml:
<repository>
<id>forplay-legacy</id>
<url>http://forplay.googlecode.com/svn/mavenrepo</url>
</repository>
now running complete build and test... maybe it works?
no....
Tests run: 301, Failures: 2, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 58:32 min [INFO] Finished at: 2019-12-20T03:04:04+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project neo4j-spatial: There are test failures.
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T16:06:16+01:00) Maven home: C:\apache-maven-3.6.2\bin.. Java version: 1.8.0_231, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_231\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"