Skip to content
Neo4j Geotools Store
Find file
Pull request Compare This branch is even with bartbaas:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/main
README.asciidoc
neo.sld.xml
pom.xml

README.asciidoc

Neo4j Spatial Geoserver Plugin

Important
Tested with: GeoServer 2.1.1

Building

mvn clean install

Deployment into Geoserver

  • unzip the target/xxxx-geoserver-plugin.zip into $GEOSERVER_HOME/webapps/geoserver/WEB-INF/lib

  • restart geoserver

  • configure a new workspace

  • configure a new datasource neo4j in your workspace. Point the "The directory path of the Neo4j database:" parameter to the relative (form the GeoServer working dir) or aboslute path to a Neo4j Spatial database with layers (see Neo4j Spatial)

  • in Layers, do "Add new resource" and choose your Neo4j datastore to see the exisitng Neo4j Spatial layers and add them.

Testing in GeoServer trunk

  • check out the geoserver source

svn co https://svn.codehaus.org/geoserver/trunk geoserver-trunk
  • build the source

cd geoserver-trunk
mvn clean install
cd src/web/app
mvn jetty:run
    <profile>
      <id>neo4j</id>
      <dependencies>
        <dependency>
          <groupId>org.geotools</groupId>
          <artifactId>gt-neo4j-spatial</artifactId>
          <version>0.7-SNAPSHOT</version>
        </dependency>
      </dependencies>
    </profile>
  • start the GeoServer webapp again with the added neo4j profile

cd $GEOSERVER_SRC/src/web/app
mvn jetty:run -Pneo4j
Something went wrong with that request. Please try again.