This component saves map configuration (at this time only layers) in a database and implements a Parser to generate OpenLayers layers to be load in a OpenLayers map or another OpenLayers extension as GeoExt or GXP
- Jetty plugin
- Tomcat 6, 7 (with openjdk 6)
- PostgreSQL (9.1)
Steps to use this library
You need to create a database and a schema on PostgreSQL. You can see create.sql
You still need to edit local.properties to your database configuration.
Then you need to launch database initializer with persistence-geo-core:
~persistence-geo/persistence-geo-core$ mvn clean test -Pfirst -DfilterToApply=local
You can test it with jetty, but it's recommended to launch it on tomcat
~persistence-geo$ mvn clean install -Plocal
Run jetty in persistence-geo-rest directory:
~persistence-geo/persistence-geo-rest$ mvn clean jetty:run -Plocal
Only copy war on webapps directory:
~persistence-geo/persistence-geo-rest$ sudo cp target/persistence-geo-rest.war /var/lib/tomcat7/webapps/
Now you can see a demo with GXP mapbox on http://localhost:8080/persistence-geo-rest/
This software is an alpha snapshot:
- Only loads WMS layers
- Integration with layer tree not implemented yet
We're working in the next features:
- Load WFS, KML, GML layers.
- Save and rescue map configuration by admin.
- Save and load layers by group.
- Save and load folders.