Mapbender Tutorial en

From MapbenderWiki

Jump to: navigation, search

Maintainer: User:Astrid Emde

Mapbender Test Server - Create your own account at the Mapbender Test Server on
http://projects.mapbender.osgeo.org/

Contents

Program

Introduction to Mapbender / Mapbender History

see also:

Installation / System Requirements

Exercise 1: Installation of Mapbender

The Three Main Objects

Link WMS

Exercise 2: Including an WMS
see also: Mapbender First Steps

Build User Interface (GUI) / Options

Exercise 3: GUI

User Adminstration / Group Administration

Exercise 4: User Administration / Group Administration

GUI - customized

Exercise 5: GUI - customized

Exercise 6: Creating tab-structure with element "tabs"

Exercise 7: WMS - Map as background

Configure and link Directory Tree (treeConfGDE)

Exercise 8: Configure Directory Tree

Link Mapbender to a customized Architecture

Exercise 9: Link Mapbender to a customized Architecture

Configuration PDF-Print

see also

Exercise 10: PDF Print

Configuration and Integration WFS

Excercise11: Configuration and Integration WFS

Digitizing at Mapbender

Exercise 12: Digitizing at Mapbender

Secured WMS Services with owsproxy

Mapbender first Steps

Login – create GUI – load WMS

  1. Start Mapbender http://localhost/mapbender/http/index.php or http://localhost/mapbender/index.php
  2. Login: user: root password: root
  3. First you get an overview of the existing GUI's
  4. Have a look at gui1 (click on the name of the GUI)
  5. Open the GUI admin2_de (admin interface)
  6. Create a GUI: create new gui
  7. Fill GUI with elements: Edit GUI elements -> select GUI -> Edit Element (select Template) -> Add all Elements (use gui1 as master for your new GUI)
  8. Include an existing WMS in this GUI: GUI admin2_en -> Link WMS into GUI (select GUI, select WMS which convey into GUI)
  9. Or load an WMS: Load Capabilities
    1. An example getCapabilities-Request: [| http://www.geoserver.nrw.de/GeoOgcWms1.3/servlet/DTK10?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1]
  10. GUI settings (changes the WMS-Settings)
  11. After updating an WMS, change the root layer (Nr. 0): WMS GUI settings -> select WMS -> set check
Display GUI-Overview
  • GUI-Overview by Buttonhome_off.png

Practices Mapbender training

Exercise 1: Mapbender installation

  • Install Apache WebServer, PHP, MySQL or PostgreSQL and Mapbender
  • Add a new File phpinfo.php to test the informations from your php-installation
  • Create a PostgreSQL/MySQL database named mapbender. Follow the instructions of Installation_en or /mapbender/Install.txt

more information: http://www.mapbender.org/index.php/Installation_en)

Exercise 2: Load a WMS

  • Load a WMS via the getCapabilities-Request

http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany/germany.map&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1

  • Have a look at the getCapabilities-XML and analyze the structure.
  • Update your WMS.
  • Delete the WMS.

(more infos: http://www.mapbender.org/index.php/WMS_Verwaltung )

Exercise 3: GUI

  • Create a new GUI. Load several WMS in this GUI (see admin2_de Link WMS into GUI).
  • Configure the WMS. Disable some layers.
  • Change the order of the layers.
  • Change the logical-zoom from the layer.
  • Change the EPSG-code, info format and the exceptions format of the WMS.
  • Display the informations of the WMS with the Metadata-button. Have a look at the getMap-Request

(more infos: http://www.mapbender.org/index.php/Interface_Management)

Exercise 4: User Administration

  • Create a new user. Fill out the form for the new user.
  • Login four times with the new user name and a wrong password. What happens?
  • The owner of the user can set the login-count back to 0 (admin2_en - Create and edit user).
  • Go to the table mb_user with phpPgAdmin and have a look at the Mapbender tables.

http://localhost/phppgadmin/index.php (user:postgres password: postgres)

  • Set MAXLOGIN to 10 in the mapbender.conf-file.

(more infos : http://www.mapbender.org/index.php/Benutzerverwaltung )

Exercise 5: GUI - adjustments

(more informations http://www.mapbender.org/index.php/Interface_Management)

  • Create new GUI. Edit GUI Elements.
  • Change the Backgroundcolor
  • Allocate the overview to another WMS.
  • Change Copyright (see element_vars)
  • Insert a Logo.
  • Delete needless Buttons.
  • Change the Button Collection and Folder-Style (see mapbender/http/img/)
  • Display the Legend only with WMS-Titles.
  • Have a look at the element_vars of the Legend and read the Description at Mapbender-Wiki.
Arrange Elements
  • use the Button arrange to position your elements easily
    • move mapframe1
    • move the whole buttons in one step
    • save your new GUI design
Export your GUI.
  • Read the SQL-statement.
  • Change the name of the GUI within the SQL-statement and load it into the database.
  • Assign the new GUI to your user with owner rights.(gui_mb_user entry at database)

Exercise 6: Create a tab-structure with element "tabs"

  • Create new GUI with element tabs and include the geodataexplorer (treeGDE), legend and print.
  • These elements need the following setting-parameters:
    • styles: visibility: hidden
    • width: 1 / height: 1 / top: 1 / left 1

more Info: http://www.mapbender.org/index.php/Tabs_vertical

Exercise 7: WMS as background map

  • Create a new GUI with a background-map. Use the element setBackground (from the GUI "gui") for this purpose.
  • Read the functionality of this element in the Mapbender-Wiki (Search for the keyword setBackground)

Exercise 8: Including and Configuration of the directory tree (treeConfGDE)

  • Create a new GUI with an own configured directory tree.
  • Configure the directory tree by using the TreeGDE setup in admin2_en. The element is named treeconfGDE.

(more Information in the Wiki: ConfTreeGde and http://www.mapbender.org/index.php/Interface_Management)

Exercise 9: Link Mapbender to a customized architecture

Open a Mapbender GUI with a link

  • Create a guest user and assign a GUI to this user. Login as guest user.
  • Create a new group and integrate the user in this group. Assign the GUI gui1 to this group.
  • Create a link which opens your GUI with the bounding box of Vienna (see WIKI keyword setBBOX).
  • Have a look at the Mapbender Gallery (http://www.mapbender.org/index.php/Mapbender_Gallery)

Exercise 10: PDF - Print

  • Customize the pdf-print. Create a printout with overview, scalebar and northarrow.
  • Customize the layout of the map.
  • Adjust the print: open the PDF via a link.
  • Log the print jobs in the Mapbender database.
  • Arrange high quality printing for the WMS.

(more Information: http://www.mapbender.org/index.php/Print )

Exercise 11: Configuration and Integration of a WFS

  • Look at the WFS-search in your GUI gui. (see WIKI WFS configuration)
  • Load a WFS with the link LOAD WFS in the gui admin1.
  • Configure the WFS-Search with the link WFS CONF (admin1).

Orientate your setting by the existing WFS Mapbender User settings in the GUI gui (WFS CONF -> edit -> Mapbender User). Mapbender User is integrated into the GUI gui as a WFS-Search.

  • Display the results of the search alternately in black/gray with firstname, name and city.

Exercise 12: gui_digitize - digitizing with Mapbender

  • Select objects for digitizing (Select-Buttons in the upper right corner)
  • Digitize an area. Digitize another area and snap to the already existing area.
  • Insert a few nodes and move them with the according button.
  • Change the name of an object (point, line, polygon).

Exercise 13: owsproxy

  • Configure the owsproxy-module for your Mapbender.
  • Create a new GUI with a secure WMS.
  • More information about the owsproxy

Exercise 14: Activate PseudoSlippy, MousewheelZoom, DoubleclickZoom

Exercise 15: Tooltip

Exercise 16: OverviewToggle

Exercise 17: ZoomBar

Mapbender_Tutorial

mapbender_tutorial_komplett Insert non-formatted text here

User:Christoph Baudson

Views
Personal tools