1 / 19

Web Mapping with Open Standards and Software

Web Mapping with Open Standards and Software. Building a WMS Crime Viewer with OpenLayers January 8, 2009 Douglas Sheldon GIS Applications & Database Administrator Spotsylvania County, Virginia Advised by Ian Turton, PhD. Introduction. Open Standards and Software

hector
Download Presentation

Web Mapping with Open Standards and Software

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web Mapping withOpen Standards and Software Building a WMS Crime Viewer with OpenLayers January 8, 2009 Douglas Sheldon GIS Applications & Database Administrator Spotsylvania County, Virginia Advised by Ian Turton, PhD

  2. Introduction • Open Standards and Software • Open Geospatial Consortium (OGC) Standards • Map Server Software • Map Client Software • Implementation

  3. Open Standards • Open to all interested participants • Equal membership • Cooperation between members • Independent of proprietary solutions • Free distribution and implementation of specifications

  4. Open Software • Includes source code • Permits modification • Free to redistribute

  5. OGC Standards • Web Map Service (WMS) • Web Feature Service (WFS) • Web Coverage Service (WCS) • Geographic Markup Language (GML) • Styled Layer Descriptor (SLD)

  6. OGC Standards: WMS • Requests • GetCapabilities • Returns capabilities as XML • GetMap • Returns map as an image • GetFeatureInfo (optional) • Returns attributes as XML • Versions • Version 1.1.1 or 1.3

  7. OGC Standards: WMS • GetCapabilities Request http://arcims.spotsylvania.va.us/ ArcGIS/services/crime/MapServer/WMSServer? request=getcapabilities&version=1.1.1

  8. OGC Standards: WMS • GetCapabilities Response

  9. OGC: WMS GetMap • GetMap Request http://arcims.spotsylvania.va.us/ ArcGIS/services/crime/MapServer/WMSServer? request=getmap&version=1.1.1&layers=0,1& styles=&SRS=EPSG:4326&bbox=-77.9,38.0,-77.35,38.38& width=400&height=300&format=image/png

  10. OGC Standards: WMS • GetMap Response

  11. Map Server Software • Deegree • GeoServer • MapServer • ArcGIS Server

  12. Map Client Software • Web Browser • Mozilla/FireFox • Internet Explorer • JavaScript Client Library • OpenLayers • MapBuilder

  13. Implementation • Data (Shapefiles) • Map Server (ArcGIS Server 9.2) • Create Map Service (WMS) • Web Server (Apache, IIS) • Install Client Library (OpenLayers 2.7) • Build Web Map • HTML/JavaScript (OpenLayers API)

  14. Test Web Map Service (WMS) • Find your WMS URL in your map server management tool • Try a WMS GetCapabilities request in a web browser • Proves the map service is running • Verifies the URL of your WMS For example: http://arcims.spotsylvania.va.us/ ArcGIS/services/crime/MapServer/WMSServer? request=getcapabilities&version=1.1.1

  15. Install OpenLayers • Copy OpenLayers.js and the img and theme folders to a folder under the root directory of your web server

  16. Test OpenLayers • Copy wms.html from the examples folder to the root directory of your web server • Change the text reading “../lib/OpenLayers.js” to the relative path to your OpenLayers.js file, for example:“openlayers/OpenLayers.js” • Change the text reading “http://labs.metacarta.com/wms/vmap0”to the URL of your WMS, for example:“http://arcims.spotsylvania.va.us/ArcGIS/services/MapServer/WMSServer” • Change the text reading “layers: ‘basic’” to the name of one of your WMS layers (“layers: ‘<your_layer_name>’”) • Open wms.html in a web browser to verify everything works

  17. Build Web Map • Style and Label Layers • Crime Incidents • Roads • Subdivisions • County Boundary • Turn Map Layers On/Off • Map Navigation (Pan/Zoom) • Find/Query Roads and Subdivisions • Map Legend

  18. Conclusion • Open Standards and Software • Open Geospatial Consortium (OGC) Standards • Map Server Software • Map Client Software • Implementation

  19. Web Mapping withOpen Standards and Software Building a WMS Crime Viewer with OpenLayers January 8, 2009 Douglas Sheldon GIS Applications & Database Administrator Spotsylvania County, Virginia Advised by Ian Turton, PhD

More Related