Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't load shapefiles which I had imported into Neo4j on GeoServer #333

Open
WuChengbin opened this issue May 3, 2018 · 7 comments
Open

Comments

@WuChengbin
Copy link

WuChengbin commented May 3, 2018

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/

1525415070 1

@craigtaverner
Copy link
Contributor

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?

@WuChengbin
Copy link
Author

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.

@WuChengbin WuChengbin changed the title I can't load shapefiles which I had imported into Neo4j I can't load shapefiles which I had imported into Neo4j in GeoServer May 4, 2018
@WuChengbin WuChengbin changed the title I can't load shapefiles which I had imported into Neo4j in GeoServer I can't load shapefiles which I had imported into Neo4j on GeoServer May 4, 2018
@craigtaverner
Copy link
Contributor

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.

@GISConsortium
Copy link

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

@Geoneer
Copy link

Geoneer commented Dec 20, 2019

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

@Geoneer
Copy link

Geoneer commented Dec 20, 2019

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.

@Geoneer
Copy link

Geoneer commented Dec 20, 2019

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants