changeset 7780:9cce1b34e47b

Remove FLYS-specific stuff from map configuration and allow to give a custom files in release script.
author Tom Gottfried <tom@intevation.de>
date Tue, 04 Mar 2014 19:08:02 +0100 (2014-03-04)
parents abf3cb9cb6c4
children be4b37839015
files artifacts/doc/conf/floodmap.xml artifacts/doc/conf/rivermap.xml contrib/make_flys_release/make_release.sh
diffstat 3 files changed, 17 insertions(+), 219 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/doc/conf/floodmap.xml	Tue Mar 04 18:40:00 2014 +0100
+++ b/artifacts/doc/conf/floodmap.xml	Tue Mar 04 19:08:02 2014 +0100
@@ -2,7 +2,7 @@
 <floodmap>
     <shapefile-path value="${artifacts.config.dir}/../shapefiles"/>
     <mapserver>
-        <server path="http://example.com/cgi-bin/"/>
+        <server path="http://yourhost:8081/cgi-bin/"/>
         <mapfile path="${artifacts.config.dir}/../flys.map"/>
         <templates path="${artifacts.config.dir}/mapserver/"/>
         <map-template path="mapfile.vm"/>
@@ -12,109 +12,9 @@
         <logfile path="${artifacts.config.dir}/../velocity.log"/>
     </velocity>
 
-    <river name="Saar">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Saar"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Mosel">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Mosel"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Elbe">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Elbe"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Donau">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Donau"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Donau (Regensburg Nordarm)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Donau (Regensburg Nordarm)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Donau (Schleusenkanäle)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Donau (Schleusenkanäle)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Fulda (Winter)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Fulda (Winter)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Fulda (Sommer)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Fulda (Sommer)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Lahn">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Lahn"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Main">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Main"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Main (Wehrarm Limbach)">
+    <river name="Beispielfluss">
         <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Main (Wehrarm Limbach)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Main (Wehrarm Volkach)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Main (Wehrarm Volkach)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Neckar">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Neckar"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Neckar (über Wehrarme)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Neckar (über Wehrarme)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Rhein">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Rhein"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Saale">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Saale"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Saale-Thüringen">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Saale-Thüringen"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Saar (Wiltinger Bogen)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Saar (Wiltinger Bogen)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Werra (Winter)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Werra (Winter)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Werra (Sommer)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Werra (Sommer)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Weser">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Weser"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
+        <river-wms url="http://yourhost:8081/cgi-bin/river-wms" layers="Beispielfluss"/>
+        <background-wms url="http://osm.intevation.de/bfg/service?" layers="OSM-WMS-Dienst"/>
     </river>
 </floodmap>
--- a/artifacts/doc/conf/rivermap.xml	Tue Mar 04 18:40:00 2014 +0100
+++ b/artifacts/doc/conf/rivermap.xml	Tue Mar 04 19:08:02 2014 +0100
@@ -2,7 +2,7 @@
 <!--// configuration fragment for static river WMS //-->
 <rivermap>
     <mapserver>
-        <server path="http://example.com/cgi-bin/"/>
+        <server path="http://yourhost:8081/cgi-bin/"/>
         <mapfile path="${artifacts.config.dir}/../rivers.map"/>
         <templates path="${artifacts.config.dir}/mapserver/"/>
         <map-template path="river-mapfile.vm"/>
@@ -11,120 +11,10 @@
     <velocity>
         <logfile path="${artifacts.config.dir}/../rivermap_velocity.log"/>
     </velocity>
-    
-    <river name="Saar">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Saar"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Mosel">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Mosel"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Elbe">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Elbe"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Donau">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Donau"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Donau (Regensburg Nordarm)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Donau (Regensburg Nordarm)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Donau (Schleusenkanäle)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Donau (Schleusenkanäle)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Fulda (Winter)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Fulda (Winter)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Fulda (Sommer)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Fulda (Sommer)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Lahn">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Lahn"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Main">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Main"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Main (Wehrarm Limbach)">
+
+    <river name="Beispielfluss">
         <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Main (Wehrarm Limbach)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Main (Wehrarm Volkach)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Main (Wehrarm Volkach)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Neckar">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Neckar"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Neckar (über Wehrarme)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Neckar (über Wehrarme)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Rhein">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Rhein"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Saale">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Saale"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Saale-Thüringen">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Saale-Thüringen"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Saar (Wiltinger Bogen)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Saar (Wiltinger Bogen)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Werra (Winter)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Werra (Winter)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Werra (Sommer)">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Werra (Sommer)"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Weser">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Weser"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Oder">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Oder"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
-    </river>
-    <river name="Havel">
-        <srid value="31467"/>
-        <river-wms url="http://example.com/cgi-bin/river-wms" layers="Havel"/>
-        <background-wms url="http://osm.intevation.de/mapcache/?" layers="OSM-WMS-Dienst"/>
+        <river-wms url="http://yourhost:8081/cgi-bin/river-wms" layers="Beispielfluss"/>
+        <background-wms url="http://osm.intevation.de/bfg/service?" layers="OSM-WMS-Dienst"/>
     </river>
 </rivermap>
--- a/contrib/make_flys_release/make_release.sh	Tue Mar 04 18:40:00 2014 +0100
+++ b/contrib/make_flys_release/make_release.sh	Tue Mar 04 19:08:02 2014 +0100
@@ -222,6 +222,14 @@
 sed -i -e "s@/usr/share/fonts/truetype/freefont@${FONT_PATH}@g" \
     $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/config.yaml
 
+if [ -r "$RIVERMAP_XML" ]; then
+    cp "$RIVERMAP_XML" $FLYS_SOURCE_DIR/river/artifacts/doc/conf/rivermap.xml
+fi
+
+if [ -r "$FLOODMAP_XML" ]; then
+    cp "$FLOODMAP_XML" $FLYS_SOURCE_DIR/river/artifacts/doc/conf/floodmap.xml
+fi
+
 if [ ! -f $FLYS_SOURCE_DIR/OpenLayers-2.11.tar.gz ]; then
     echo "INFO: download OpenLayers-2.11 for client"
     cd $FLYS_SOURCE_DIR

http://dive4elements.wald.intevation.org