[Webflysuesk-commits] r58 - in webflysuesk/branches/openlayers-integration: . doc

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Apr 20 11:53:18 CEST 2009


Author: iweinzierl
Date: 2009-04-20 11:53:18 +0200 (Mon, 20 Apr 2009)
New Revision: 58

Added:
   webflysuesk/branches/openlayers-integration/doc/INSTALL-eng.txt
   webflysuesk/branches/openlayers-integration/doc/INSTALL-ger.txt
Modified:
   webflysuesk/branches/openlayers-integration/ChangeLog.txt
Log:
Added installation guides.

Modified: webflysuesk/branches/openlayers-integration/ChangeLog.txt
===================================================================
--- webflysuesk/branches/openlayers-integration/ChangeLog.txt	2009-04-20 09:24:10 UTC (rev 57)
+++ webflysuesk/branches/openlayers-integration/ChangeLog.txt	2009-04-20 09:53:18 UTC (rev 58)
@@ -1,5 +1,10 @@
 2009-04-20  Ingo Weinzierl <ingo.weinzierl at intevation.de>
 
+	* doc/INSTALL-ger.txt,
+	  doc/INSTALL-eng.txt: Installation guides.
+
+2009-04-20  Ingo Weinzierl <ingo.weinzierl at intevation.de>
+
 	* doc/postgis/achse-schema.sql,
 	  doc/postgis/bauwerke-schema.sql,
 	  doc/postgis/querprofile-schema.sql,

Added: webflysuesk/branches/openlayers-integration/doc/INSTALL-eng.txt
===================================================================
--- webflysuesk/branches/openlayers-integration/doc/INSTALL-eng.txt	2009-04-20 09:24:10 UTC (rev 57)
+++ webflysuesk/branches/openlayers-integration/doc/INSTALL-eng.txt	2009-04-20 09:53:18 UTC (rev 58)
@@ -0,0 +1,128 @@
+*************************************************
+*   WebFLYS OpenLayers-integration (20.04.2009  *
+*************************************************
+
+This is an installation-guide for WebFLYS under unix. Please follow this guide
+step by step to guarantee a working application.
+
+
+1.  Installation of Apache Tomcat
+    1. Download Tomcat server version 5.5 or higher from [1].
+    2. tar xvfz {tomcat-archive}tar.gz
+    3. mkdir -p /opt/gis/
+    4. mv {tomcat-archive} /opt/gis
+    5. export CATALINA_HOME=/opt/gis/{tomcat-archive}
+
+
+2.  Java SDK installation
+    1. Download a JDK version 1.5 or higher from [2].
+    2. tar xvfz {jdk-archive}.tar.gz
+    3. mv {jdk-archive} /opt/gis/
+    4. export JAVA_HOME=/opt/gis/{jdk-archive}
+    5. export PATH=$PATH:$JAVA_HOME:/$JAVA_HOME/bin
+    6. export JAVA_OPTS=-server
+
+
+3.  Installation of a Apache Derby database
+    1. Download the database from [1].
+    2. tar xvfz {derby-archive}-lib.tar.gz
+    3. mv {derby-archive}-lib /opt/gis/
+    4. export DERBY_HOME=/opt/gis/{derby-archive}-lib
+    5. export PATH=$PATH:$DERBY_HOME
+
+
+4.  Creation of necessary databases
+    1. mkdir -p /opt/databases
+    2. cd /opt/databases
+    3. ij
+    4. connect 'jdbc:derby:jobs;create=true';
+    5. run {Scheduler}/doc/schema.sql';
+    6. connect 'jdbc:derby:WebFLYS;create=true';
+    7. run '{WebFLYS}/doc/wst-schema.sql';
+    8. run '{WebFLYS}/doc/rivers.sql';
+    9. exit;
+   10. Copy following jar-Files into $CATALINA_HOME/common/endorsed/ :
+          derby-10.3.2.1.jar
+          derbyclient-10.3.2.1.jar
+          derbyLocale_de_DE-10.3.2.1.jar
+          derbynet-10.3.2.1.jar
+   11. Insert the following lines into $CATALINA_HOME/conf/server.xml to make
+       tomcat communicating with the scheduler:
+
+        <GlobalNamingResources>
+
+            <Environment name="webflys.scheduler"
+                type="java.lang.String"
+                value="http://localhost:8880"
+                override="false"/>
+
+            <!-- Definition der Derby-DB -->
+                <Resource name="webflys.db"
+                    type="javax.sql.DataSource"
+                    auth="Container"
+                    description="Derby database for WebFLYS"
+                    maxActive="100" maxIdle="30" maxWait="10000"
+                    username="" password=""
+                    driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
+                    url="jdbc:derby:/opt/databases/WebFLYS"/>
+
+            <!-- andere Einträge -->
+
+        </GlobalNamingResources>
+
+
+5.  Download and deploy the GeoServer.
+    1. Download GeoServer version 1.5.3 from [3] as war-archive.
+    2. unzip geoserver-1.5.3.war.zip
+    3. mv geoserver-1.5.3.war $CATALINA_HOME/webapps
+
+
+6.  Build and start the Scheduler
+    1. cd {Scheduler}/scheduler
+    2. mvn clean compile package
+    3. ./contrib/run.sh
+
+
+7.  Deploy WebFLYS into tomcat
+    1. cd {WebFLYS}/webflys
+    2. mvn clean compile package
+    3. mv target/webflys.war $CATALINA_HOME/webapps
+
+
+8.  Download WSPLGEN
+    1. Download WSPLGEN-1.2.4-i386.zip from [4]
+    2. unzip WSPLGEN-1.2.4-i386.zip
+    3. mkdir ~/bin
+    4. mv wsplgen.exe ~/bin/
+    5. cd ~/bin
+    6. ln -s wsplgen.exe wsplgen
+
+
+9.  Installation of PostGIS and creation of necessary tables
+    1. install PostGIS
+    2. Create a 'webflys' database.
+    3. Create the necessary tables. You find the sql schemata in
+       {WebFLYS}/doc/postgis/
+    4. Fill in your data into these tables.
+
+
+10. Start the tomcat server
+    1. cd $CATALINA_HOME/bin
+    2. sh catalina.sh run
+
+    
+11. Configuration of GeoServers (http://localhost:8080/geoserver)
+    1. Create following datastores based on the postgis tables, you've just
+       created: achse, bauwerke, querprofile, rohre_graben_damm, usk_gf_ergebnis
+    2. Create following FeatureTypes based on the datastores: topp:achse,
+       topp:bauwerke, topp:kilometrierung, topp:querprofile,
+       topp:rohre_graben_damm, topp:usk_gf_ergebnis
+
+    If you did well, you can test the layer on
+    http://localhost:8080/geoserver/mapPreview.do
+
+
+[1] http://tomcat.apache.org
+[2] http://java.sun.com
+[3] http://geoserver.org
+[4] http://wald.intevation.org

Added: webflysuesk/branches/openlayers-integration/doc/INSTALL-ger.txt
===================================================================
--- webflysuesk/branches/openlayers-integration/doc/INSTALL-ger.txt	2009-04-20 09:24:10 UTC (rev 57)
+++ webflysuesk/branches/openlayers-integration/doc/INSTALL-ger.txt	2009-04-20 09:53:18 UTC (rev 58)
@@ -0,0 +1,130 @@
+*************************************************
+*   WebFLYS OpenLayers-integration (20.04.2009  *
+*************************************************
+
+Anleitung zur Vollständigen Installation mit allen komponenten für Web-FLYS
+unter Unix.
+
+
+1.  Installation des Tomcat Servers
+    1. Download des Tomcat Servers ab Version 5.5 oder höher von [1].
+    2. tar xvfz {Tomcat-Archiv}tar.gz
+    3. mkdir -p /opt/gis/
+    4. mv {Tomcat-Archiv} /opt/gis
+    5. export CATALINA_HOME=/opt/gis/{Tomcat-Archiv}
+
+
+2.  Installation eines Java JDK
+    1. Download des JDKs ab Version 1.5 oder höher von [2].
+    2. tar xvfz {JDK-Archiv}.tar.gz
+    3. mv {JDK-Archiv} /opt/gis/
+    4. export JAVA_HOME=/opt/gis/{JDK-Archiv}
+    5. export PATH=$PATH:$JAVA_HOME:/$JAVA_HOME/bin
+    6. export JAVA_OPTS=-server
+
+
+3.  Installation einer Apache Derby Datenbank
+    1. Download der Datenbank von [1].
+    2. tar xvfz {derby-Archiv}-lib.tar.gz
+    3. mv {derby-Archiv}-lib /opt/gis/
+    4. export DERBY_HOME=/opt/gis/${derby-Archiv}-lib
+    5. export PATH=$PATH:$DERBY_HOME
+
+
+4.  Einrichten der Datenbankstruktur für WebFLYS und den Scheduler
+    1. mkdir -p /opt/databases
+    2. cd /opt/databases
+    3. ij
+    4. connect 'jdbc:derby:jobs;create=true';
+    5. run {Scheduler}/doc/schema.sql';
+    6. connect 'jdbc:derby:WebFLYS;create=true';
+    7. run '{WebFLYS}/doc/wst-schema.sql';
+    8. run '{WebFLYS}/doc/rivers.sql';
+    9. exit;
+    10. Folgende jar-Files in den Ordner $CATALINA_HOME/common/endorsed/
+        kopieren:
+          derby-10.3.2.1.jar
+          derbyclient-10.3.2.1.jar
+          derbyLocale_de_DE-10.3.2.1.jar
+          derbynet-10.3.2.1.jar
+    11. Einstellung des Tomcat Servers, damit dieser mit dem Scheduler
+        kommunizieren kann in der $CATALINA_HOME/conf/server.xml
+
+        <GlobalNamingResources>
+
+            <Environment name="webflys.scheduler"
+                type="java.lang.String"
+                value="http://localhost:8880"
+                override="false"/>
+
+            <!-- Definition der Derby-DB -->
+                <Resource name="webflys.db"
+                    type="javax.sql.DataSource"
+                    auth="Container"
+                    description="Derby database for WebFLYS"
+                    maxActive="100" maxIdle="30" maxWait="10000"
+                    username="" password=""
+                    driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
+                    url="jdbc:derby:/opt/databases/WebFLYS"/>
+
+            <!-- andere Einträge -->
+
+        </GlobalNamingResources>
+
+
+5.  Download und deployen des GeoServers.
+    1. Download des GeoServers in Version 1.5.3 von [3] in Form eines gepackten
+       War-Archivs.
+    2. unzip geoserver-1.5.3.war.zip
+    3. mv geoserver-1.5.3.war $CATALINA_HOME/webapps
+
+
+6.  Compilieren und Starten des Schedulers
+    1. cd {Scheduler}/scheduler
+    2. mvn clean compile package
+    3. ./contrib/run.sh
+
+
+7.  Deployen von WebFLYS in den Tomcat Server
+    1. cd {WebFLYS}/webflys
+    2. mvn clean compile package
+    3. mv target/webflys.war $CATALINA_HOME/webapps
+
+
+8.  Download von wsplgen (zur Berechnung von Wasserspiegellagen)
+    1. Download von WSPLGEN-1.2.4-i386.zip von [4]
+    2. unzip WSPLGEN-1.2.4-i386.zip
+    3. mkdir ~/bin
+    4. mv wsplgen.exe ~/bin/
+    5. cd ~/bin
+    6. ln -s wsplgen.exe wsplgen
+
+
+9.  Einrichten von PostGIS
+    1. Installieren von PostGIS
+    2. Erstellen einer Datenbank 'webflys'.
+    3. Erstellen der benötigten Tabellen. Die SQL-Schemata sind unter
+       {WebFLYS}/doc/postgis/ zu finden.
+    4. Befüllen Sie die Tabellen mit ihren Daten.
+
+
+10. Start des Tomcat Servers
+    1. cd $CATALINA_HOME/bin
+    2. sh catalina.sh run
+
+    
+11. Konfiguration des GeoServers (http://localhost:8080/geoserver)
+    1. Erstellen von DataStores basierend auf den PostGIS Tabellen: achse,
+       bauwerke, querprofile, rohre_graben_damm, usk_gf_ergebnis
+    2. Erstellen von FeatureTypes basierend auf den DataStores: topp:achse,
+       topp:bauwerke, topp:kilometrierung, topp:querprofile,
+       topp:rohre_graben_damm, topp:usk_gf_ergebnis
+
+    Wenn du Einstellungen alle richtig vorgenommen wurden, können Sie ihre
+    Layer unter http://localhost:8080/geoserver/mapPreview.do testen.
+
+
+[1] http://tomcat.apache.org
+[2] http://java.sun.com
+[3] http://geoserver.org
+[4] http://wald.intevation.org



More information about the Webflysuesk-commits mailing list