GRASS-HRU Manual install
Contents |
Download/Installation of GRASS-HRU
Downloading the Virtual Appliance and the QGIS-Plugin
The following files should be downloaded from http://www.geoinf.uni-jena.de/~c3schs/grass-hru:
- grass-hru.ova [~550 MB] - contains the virtual machine for VirtualBox, required in the following section
- hruwps.zip - QGIS plug-in
Questions? http://ilms.uni-jena.de/ilms/board/index.php
Installing the VirtualBox
The derivation of HRUS with GRASS-GIS, which will be explained below, requires a virtualization software which hosts a linux system and all software and scripts needed. VirtualBox should be used - the current version 4.x can be downloaded at http://www.virtualbox.org/wiki/Downloads. The wizard leads you through the steps of the installation process. It should be noted that:
- a temporary deactivation of the network connection is necessary and therefore not unusual
- all necessary drivers should be installed
After a successful installation VirtualBox can be launched and the import of a preconfigured hard disk image can start:
- Datei -> Appliance importieren
- Load the Appliance (see above) under Auswählen (file grass-hru.ova)
- Apply the imported configuration of the Appliance and end the import process with Abschließen
- The appliance is being imported...
- ...and will be available through an entry in the VirtualBox main window (GRASS-HRU 1.0)
Installing QuantumGIS 1.7
The current version of QuantumGIS is available at http://www.qgis.org/wiki/Download. The Standalone Installer is recommended - the download address for version 1.7 is http://www.qgis.org/downloads/QGIS-OSGeo4W-1.7.4-d211b16-Setup.exe.Please note: For the HRU derivation the GRASS plug-in for QuantumGIS is not required but it is included in the installer version >= 1.6. As an alternative, the installer version 1.4 of QuantumGIS can be used, which does not install a GRASS plug-in and therefore reduces the filesize. (http://qgis.org/downloads/QGIS-1.4.0-1-No-GrassSetup.exe)
Installing the Plug-in
To install the actual plug-in for HRU derivation in QuantumGIS the following steps have to be followed:
- Unzip the zip archive hruwps.zip, which has been dowloaded (see above), into the plug-in file of QuantumGIS. According to the QuantumGIS version the folder is called
- ../QuantumGIS/python/plugins or
- ../QuantumGIS/apps/qgis/python/plugins
- start QuantumGIS
- Plugins -> Plugins verwalten
- Search for HRU WPS-Client in the QGIS Plugin Manager, activate it and confirm with Ok
- The tool for HRU derivation can be started by using a separate button in the menu bar
Preparation
Before starting the HRU derivation, the following steps have to be completed:
- Run the newly created Virtual Appliance with the name "GRASS-HRU" by double-clicking on the corresponding entry on the VirtualBox window (or the button "Starten"). The following boot process in a separate window has to be carried out completely and can be minimized when the login prompt appears (donot close!). The virtual machine is working in the background during the whole HRU derivation process.
Please note: By entering http://localhost:8080 in the address bar of the internet browser you can check if the virtual machine has been successfully started and if a connection with the machine is possible. A website containing the words "It works!" should appear. - Click on Extras -> Netzlaufwerk verbinden in the Windows explorer and enter it as file http://localhost:8080/grasshru. Additionally, you can choose a free hard disk letter, e.g. Z:. When finished, open the configuration file ../plugins/hruwps/grass-hru.cfg and edit device in webdav section according to your chosen drive letter
All input data should now be stored in this folder. The existing subfolder /gehlberg contains example data for input and result layers. New subfolders for the required input data can be created in the new network folder. - Now the plug-in can be started from QuantumGIS. In order to do so, start QuantumGIS and click on the GRASS-HRU-Icon (see above) - the plug-in for HRU derivation opens. By clicking on the magnifying glass to the right of the address bar a message on successful connection should appear.