Escolar Documentos
Profissional Documentos
Cultura Documentos
MapServer Demos
1. Introduction
The installation script automatically installs several demonstration applications. The main demo page can be accessed on the users machine by invoking the top demo page URL http://localhost/ms-demos.html (shown below). All the demo applications can be accessed from this page.
2. Objective
The objectives of this training module are: 2.1. To interact with MapServer demo applications 2.2. To familiarize with thin and thick client interfaces for map browsing 2.3. To familiarize with single and multiple query of maps
3. Procedure
3.1. Itasca Demo Application The Itasca demonstration is a thin-client application that uses a simple HTML/Imagemap to display raster and vector layers.
3.1.1. Select the Itasca Demo after invoking the http://localhost/ms-demos.html on your browser.
3.1.3. Try to browse over the area, query a feature, select layer to display, change mode of operations from zoom in-pan-zoom out, change zoom-scale. Then notice changes on the web browse.
3.1.4. Try Query feature by click at Query feature and then click at the WINNIBIGOSHI lake.
3.2. Gmap Demo Application The thick-client gmap demonstration application includes Canadian dataset was. The gmap uses the Rosa Java applet that improves server-side web applications by adding some simple features on the client-side. The Rosa applet extends the standard form of control (zoom/pan, query). It displays an image (JPEG or PNG) on which operations such as single click query and dragging a rectangle to define an area of interest can be performed. It can also have a toolbar and/or floating buttons with various functions attached to them. Rosa is available as FOSS, which means that it can be freely in developing customized applications.
3.2.1. Select the Gmap Demo after invoking the http://localhost/ms-demos.html on your browser.
3.2.2. Try all functions on gmap: layer selection, zoom-in, zoom-out, click-to-center, changing sized of map and quick view. 3.2.3. Change Java Mode to HTML mode by clicking at Java Mode switch.
3.2.4. Try identify/info button and select single city or multiple cities. To select single city simple click onto that city.
3.2.6. To selection multiple cities specify the window by click-drag-and-release over the group of cities.
3.2.7. The result information of four Cities in the Information window is shown as below.
3.2.8. Same as above, but select the layer Parks and try to user identify the park and note the result.
* You can get the above result around the middle-bottom area in Canada
3.3. Demo Applications using Multiple Data Formats Compiling libgrass against GDAL allows Mapserver to read GRASS raster data directly. This demo applications use GRASS GIS raster layers along with data layers in other format (ERSI Shape and GeoTiff). First demo uses a thin-client a simple HTML/Imagemap to display raster and vector layers Another thin-client includes javascript-based panning and DHTML (Dynamic HTML) rubber-band zoom/query capability was also installed and tested using datasets in multiple formats. 3.3.1. Select the GRASS MapServer Demo 1 after invoking the http://localhost/ms-demos.html on your browser.
3.3.2. Select Soils map layer (data in native GRASS raster format).
3.3.6. Change the map as roads and fields maps and query fields map.
3.3.8. Select the GRASS MapServer Demo2 after invoking the http://localhost/ms-demos.html on your browser.
3.4. Mapbuilder Demo Application MapBuilder is a modern standards-based web mapping client. It supports the Open Geospatial consortium(OGC) standards,allowing you to display interactive maps from many sources on your web pages from services conforming to OGC Web Map Service (WMS) or the OGC Web Feature Service (WFS). 3.4.1. Select the Mapbuilder demo after invoking the http://localhost/ms-demos.html on your browser.
3.4.4. Try all basic function such as : layer zoom-in, zoom-out, pan, zoom-by-rectangle and display-complete-map.
3.4.5. Try to change background from World image to Satellite image by click on Satellite button.
3.4.6. Go back to Demo Pages and select WMS Time Series page. Click on play the movie button to see Time Series image movie.
3.4.7. Select Precipitation Anomailes (IRI Columbia U.) to see another Time Series image movie.
3.5. Mapbender Demo Application Mapbender is an Open Source Geospatial Foundation project and all about maps! Have a look at this map application. You can zoom in, out, pan, click and query, turn layers on and off or add more maps. Mapbender is the software and portal site for geodata management of OGC OWS architectures. The software provides web technology for managing spatial data services implemented in PHP, JavaScript and XML. It provides a data model and interfaces for displaying, navigating and querying OGC compliant map services. The Mapbender framework furthermore provides authentication and authorization services, OWS proxy functionality, management interfaces for user, group and service administration in WebGIS projects.
3.5.1. Select the Mapbender demo after invoking the http://localhost/ms-demos.html on your browser.
3.5.5. Try all basic function such as : layer selection, zoom-in, zoom-out, pan, zoom-by-rectangle and display-complete-map.
3.5.6. Try Query button and select Mapbender user point by click onto that point.
3.5.8. Try change a background image from Demis World Map to JPL World Map Service, try Coordinate button, and click on any place on the map then the coordinate of that point will show under display map.
3.5.9. Try Adding WMS from filter list then the list of available WMS will show on WMS Catalog window. Select Atlas of Canada WMS by double click on it.
3.5.10. Try open Road Network layers of The Atlas of Canada WMS map.
3.5.11. Try to change the order of map layer by Click WMS preferences and move Mapbender User map under the Germany map.
3.5.12. Try to see metadata of service by click on this button. It results showing information of all map service.
3.6. CartoWeb Demo Application CartoWeb is a comprehensive and ready-to-use Web-GIS (Geographical Information System) as well as a convenient framework for building advanced and customized applications. Developed by Camptocamp SA, it is based on the UMN MapServer engine and is released under the GNU General Public License (GPL). Written using innovative language PHP5, CartoWeb is highly modular and customizable thanks to its object-oriented architecture. It runs evenly on Windows or Unix-like platforms and shows its real power when associated to PostgreSQL/PostGIS.
3.6.1. In order to start the demo, click on CartoWeb3 Demo link in the right part of the webpage, this will bring you to the URL http://localhost/cartoweb3/htdocs/ demoCW3.php. We note that the interface of a standard CartoWeb application includes functions on the left hand which are organized into tabs. The map client area is on the right hand together with some map browsing buttons.
Functional buttons
Functional tabs
3.6.2. Using Themes tab This functional tab includes Graphic User Interface related functions used for browsing the map.
3.6.3. Select None, Vector and Raster options of Background group to see background image of the map changes.
3.6.4. Try select/deselect layers in Human activities group to see map layers change. 3.6.5. Try select/deselect layers groups in Category group to see map layers change. Search tab : This tab includes quick search feature to identify objects base on their attributes 3.6.6. Select Mont Blanc item in Shortcuts group to have the map zoomed to Mont Blanc pick
3.6.7. Input a location of a place inside the scope of current map to have the map client recentered to that place.
3.6.8. In Identifiers recentering group, select Airports in Layer field and type 138 (which is objects id of the airport that we want to seek) in the next field and press Enter. The map client area will be zoomed and recentered to Bergamo Orio Al Serio airport.
Outline tab :This tab allows user to outline some basic drawing on the map client area.
Select Draw and Mask mode and try using drawing buttons on the right to draw something to the map client area and see the results for each mode.
Query tab : This functional tab is used when user wants to query information about places of interest on the map.
3.6.9. Firstly select the query options for the layers that you wish to query information from in Query tab, then try to use button and drag a
rectangle on the map over the region and objects that you would like to query. 3.6.10. As the result, the query information is shown below the map client area.
4. Conclusion
In this training module various demonstration application and interaction with thick and thin map browser applications have been demonstrated. The user can communicate with MapServer in CGI mode and browse the maps and query single or multiple features. Results of the query are displayed as text attributes on the browser. Map features can also be retrieved in OGC/ISO compliant GML format.