22
Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps Institute of Cartography and Geoinformation 1 Ionuț Iosifescu Maps for Spatial Data Infrastructures (Service-Oriented Web Mapping) 18/02/2016

Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

1

Ionuț Iosifescu

Maps for Spatial Data Infrastructures (Service-Oriented Web Mapping)

18/02/2016

Page 2: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

2

Spatial Data Infrastructures ?!?

Image courtesy of INSPIRE 18/02/2016

Page 3: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

3

Image courtesy of swisstopo 18/02/2016

Page 4: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

4

Spatial Data Infrastructures

Copyright: swisstopo

18/02/2016

Page 5: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

§  Access §  Geoinformation §  Geoservices

§  Political framework §  Institutional facilities §  Technologies §  Data §  People §  Common Exchange

5

Components of Spatial Data Infrastructures

Image courtesy of swisstopo 18/02/2016

Page 6: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

6

Spatial Data Infrastructure Levels

Image courtesy of Rajabifard et al., 2000. http://dspace.uah.es/dspace/bitstream/handle/ 10017/6818/%28HSR%29Spatial%20data.pdf? sequence=1

18/02/2016

Page 7: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

§  Access + Geoinformation + Geoservices + Common Exchange

§  Geoportal for User Access (User-friendly Presentation) §  (Web) Services for Access to Geodata (Application Logic,

enables functionalities presented in the Geoportal) §  Geodatabases for proper management of

Geoinformation (Data Management)

§  Common Exchange = Standards

7

What Does an SDI Means in practice?

18/02/2016

Page 8: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

8

Generic Three-tier Architecture

DB Services GUI

18/02/2016

Page 9: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

9

User Access through Geoportals

18/02/2016

Page 10: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

§  A distributed system consists of a collection of autonomous computers, connected through a network, that communicate according to some protocol (messages) via documented interfaces in order to present to the user an integrated system.

10

Geoservices are linked to Distributed Systems

18/02/2016

Page 11: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

§  Visualization Services §  Geoprocessing Services §  Geocoding Services §  Metadata/Catalog Services §  Location Based Services §  … §  Service Chaining §  Support Services

(persistence, schema mapping, translation)

11

Geoservices / SOA

Image courtesy of EU FP6 ORCHESTRA 18/02/2016

Page 12: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

§  Databases that can store and manage geoinformation as a collection of relational tables (relational databases) or objects (object-oriented databases)

§  Features: §  Spatial geometry types and spatial reference systems ( it can import /

export / manage geodata) §  Spatial indexes (performance) §  Spatial functions (geometrical processing, measurement and analysis

functions)

§  Example: PostGIS (spatial extension) and PostgreSQL (core database engine)

12

Geodatabases (1)

18/02/2016

Page 13: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

§  Data consistency and integrity (“ACID” properties) §  Multiuser support, concurency §  Performance (spatial index, DB optimizations) §  SQL query language (with geometry data types and

spatial functions) §  Reduced data redundancy §  Prevents updating errors §  Independence of specific GIS formats §  Improved data security and fault-tollerance §  Easy to use for programming Geoservices

13

Geodatabases (2)

18/02/2016

Page 14: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

14

Service-Oriented Cartography in a Nutshell

Copyright: Iosifescu, 2011

18/02/2016

Page 15: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

§  Web Server §  Software on the server that handles the communication with the Web

browser (usually over port 80 – HTTP protocol) §  Serves content to the Web browser §  Communication mechanism: request-response

§  Web Content §  Static: XHTML pages, documents, files available on the server §  Dynamic: generated each time with a new request (e.g. CGI applications,

Java servlets, JSP, ASP, etc...)

§  Web Map Server §  Dynamic rendering of georeferenced information §  Renders maps as images for display in the Web browser

15

Web Servers and Web Map Servers

18/02/2016

Page 16: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

§  The displayed map content is created by a remote server (e.g. a Web Map Server) instead of the client browser

§  Each map interaction/navigation in the geoportal triggers a request to the map server

§  The server is preparing the map content (e.g. rendering) the requested data/map in a Web-friendly format (e.g. an image)

§  The image is sent back to the client as response §  The Web browser / geoportal displays the image §  Server-side and client-side rendering can be combined §  Let’s discuss the advantages and disadvantages!

16

Server-side vs. Client-side Web Mapping

18/02/2016

Page 17: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

§  client-side interactivity: §  A “thick” client is downloaded

from the server §  Map content and application

are downloaded together §  All interactivity is executed on

the client §  All interactivity is independent

of the Internet connection §  Performance is browser

dependent §  Data amount limited

17

Client-side vs. Server-side Web Mapping

§  server-side interactivity: §  Only a “thin” client is

downloaded from the server §  Each interaction requires

communication with the server §  All interactivity is dependent of

the Internet connection §  Performance is browser

independent §  Can handle huge amounts of

data and distributed data sources

§  Client-side and Server-side interactivity can be freely combined in a Web Map

18/02/2016

Page 18: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

18

ETH SDI in Practice

Copyright: Iosifescu et al., 2014

18/02/2016

Page 19: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

19

Cartographic Visualization in an SDI

18/02/2016

Page 20: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

§  What is the goal of an SDI §  Components of an SDI §  Levels of an SDI §  Generic three-tier Architecture of an SDI (data, application

and presentation layers) §  An overview on Geoportals, Geoservices, Geodatabases §  Service-oriented Cartography §  Server-side vs. client-side Web mapping

20

What have we learned?

18/02/2016

Page 21: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

? 21

Questions

18/02/2016

Page 22: Maps for Spatial Data Infrastructures - ETH Zosgl.ethz.ch/training/webmaps/lectures/2.1. Maps for... · 2016-02-09 · Maps for Spatial Data Infrastructures – WMS – SLD | ETH

Maps for Spatial Data Infrastructures – WMS – SLD | | ETH CAS RIS Module from GIS Data to Interactive Web Maps

Institute of Cartography and Geoinformation

§  Creating Map Services: §  Start your local map server §  Start QGISPublishtoWeb §  Load Shapefiles and symbolize them §  Export to the web using the 'Publish to web' plugin §  Test the created map services

22

Exercise 5

18/02/2016