Neo4j Spatial in GeoServer
Neo4j Spatial provides built-in support for GeoTools data store, making it directly usable inside GeoServer for publishing and visualizing spatial data.
Prerequisites
-
GeoServer (download from http://geoserver.org)
-
Neo4j database with Neo4j Spatial plugin
-
Neo4j Spatial layers configured in your database
Installation and Setup
Deployment
-
Copy the
neo4j-spatial-geotools-plugin-xxx-SNAPSHOT-with-dependencies.jarfrom:-
Option A:
geotools-plugin/target/ -
Option B: the GitHub releases page
into
$GEOSERVER_HOME/webapps/geoserver/WEB-INF/lib -
-
Restart GeoServer
-
Open the GeoServer admin interface at http://localhost:8080/geoserver/web/
Configuration
Create Workspace
-
Login to GeoServer (default: admin/geoserver)
-
Create a new workspace for your Neo4j data
Development Testing
For testing with GeoServer source code:
-
Check out GeoServer source
-
Add Neo4j profile to
src/web/app/pom.xml:<profile> <id>neo4j</id> <dependencies> <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-spatial-geotools-plugin</artifactId> <version>2025.10.0</version> </dependency> </dependencies> </profile> -
Run with profile:
cd src/web/app mvn jetty:run -Pneo4j