Load a WMS-Layer

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(Add Google Maps layers)
 
(54 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Content Tree|HEADER=QGIS Tutorial|NAME=QGIS tutorial}}
 
 
 
WMS stands for Web Map Service. WMS produces maps of spatially referenced data
 
WMS stands for Web Map Service. WMS produces maps of spatially referenced data
 
dynamically from geographic information. These maps are rendered in a pictorial format
 
dynamically from geographic information. These maps are rendered in a pictorial format
 
for example PNG, GIF or JPEG. The operations can be done using a standard web
 
for example PNG, GIF or JPEG. The operations can be done using a standard web
browser which submitt requests in form of a URL. In most cases WMS acts as a client
+
browser which submitt requests in form of a [[wikipedia:Url |URL]]. The [[wikipedia:Open Geospatial Consortium |OGC]] WMS specification standardizes the way in which maps are requested by clients and the way that servers describe their data holdings.
like Quantum GIS. The OGC WMS specification standardizes the way in which maps
+
 
are requested by clients and the way that servers describe their data holdings.
+
===Clients===
 +
A growing number of clients supporting WMS or WFS standards.
 +
*ArcGIS
 +
*Quantum GIS
 +
*UDIG
 +
*OpenLayes - pure javascript library for displying map data in most web browsers
 +
 
 +
===Requests===
 +
There are differnt types of requests, but only two are required by any wms server:
 +
*GetCapabilities - returns parameters about the WMS and the available layers
 +
*GetMap - with parameters provided, returns a map image
  
 
[[File:WMS.png]]
 
[[File:WMS.png]]
  
 
==Add WMS layer==
 
==Add WMS layer==
If you want to integrate a WMS-Layer to Quantum GIS you have to do the follwing steps.
+
If you want to integrate a WMS-Layer to QGIS 3 follow these steps:
# Click the {{button|text=Add WMS layer}} icon [[File:Addwms.png|25px]]. The following window opens: [[File:Wmslayer.png]]
+
# Open {{button|text=Data Source Manager}}  [[Image:QGIS_3.0_datasource.png|30px]]
# Click {{button|text= Add default servers}}.
+
# Click {{button|text= WMS/WMTS}} [[File:Addwms.png|100px]].
# Select Nasa (JPL) as the Server connection from the drop-down list.
+
# {{mitem|text= Layers --> New}}. Type a name for the new WMS connection e.g. {{typed|text= BKG DTK250}} (Digitale Topographische Karte 1:250,000, Bundesamt für Kartographie and Geodäsie, Frankfurt).
 +
# Type the URL : {{typed|text=http://sg.geodatenzentrum.de/wms_dtk250}}
 +
[[File:qgis_add_dtk.png|400px]]
 +
# Click {{button|text=OK}}
 
# Click {{button|text=Connect}}
 
# Click {{button|text=Connect}}
# Now a list of all downloadable layers appears.
+
# Mark the layer ''dop20'' and click {{button|text=Add}}
# Click on the layer to select him. If you click on the little Plus symbol you see all styles the layer included.
+
[[File:qgis_wms_dtk.png|800px]]
# After selecting the layer or style click {{button|text=Add}}.
+
  
{{exercise|message= Exercise 13| text=Add styles}}
+
==Add Google Maps layers==
# Make a WMS connection to NASA (JPL)
+
# Open {{button|text=Data Source Manager}}  [[Image:QGIS_3.0_datasource.png|30px]]
# Look for the layer {{typed|text=BMNG (Blue Marble Next Generation)}}
+
# To add the Google Maps map service in QGIS 3 simply, go to XYZ Tiles in the Browser panel.
# There you click on the Plus-Symbol to open the included styles.
+
# Right-click on XYZ Tiles and choose XYZ Connections {{button|text=New}}.
# Add the styles {{typed|text=AUG}} and {{typed|text=DEZ}} to the map legend.
+
# Enter the name for the WMS Service fo example: {{typed|text=Google Satellite}}
 +
# Copy and paste the URL: https://mt1.google.com/vt/lyrs=s&hl=en&x={x}&y={y}&z={z}
 +
# Adjust the maximum zoom level {{typed|text=19}}, confirm with OK.
 +
# To view inside QGIS go to the Browser panel. Unfold the XYZ Tiles and double-click or drag the XYZ Tile service to the Layers panel.
 +
# Configure additional WMS connections in the same manner using the URLs of this table:
 +
{| class="wikitable sortable"
 +
|-
 +
! WMS Name
 +
! URL
 +
|-
 +
| Google Satellite
 +
| http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}
 +
|-
 +
| Google Roads
 +
| https://mt1.google.com/vt/lyrs=h&x={x}&y={y}&z={z}
 +
|-
 +
| Google Satellite Hybrid
 +
| https://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}
 +
|-
 +
| Google Maps
 +
| https://mt1.google.com/vt/lyrs=r&x={x}&y={y}&z={z}
 +
|-
 +
| Bing Maps
 +
| http://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g=1
 +
|-
 +
| OpenStreetMap Mapnick
 +
| http://tile.openstreetmap.org/{z}/{x}/{y}.png
 +
|-
 +
| Open Topo Map
 +
| https://tile.opentopomap.org/{z}/{x}/{y}.png
 +
|-
 +
| ESRI Base Map
 +
| https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}
 +
|-
 +
| ESRI Topography Map
 +
| http://services.arcgisonline.com/ArcGIS/rest/services/Elevation/World_Hillshade/MapServer/tile/{z}/{y}/{x}
 +
|-
 +
| Carto Positron
 +
| https://cartodb-basemaps-a.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png
 +
|-
 +
| Stamen Terrain
 +
| http://a.tile.stamen.com/terrain/{z}/{x}/{y}.png
 +
|}
  
==OpenStreet Map layer==
+
==Add Digital Ortho Photos (DOP) of Lower Saxony==
OpenStreetMap creates and provides free geographic data such as street maps to anyone
+
Since 2022 digital otho photos in Lower Saxony are published as open geodata under the License „Datenlizenz Deutschland – Namensnennung – Version 2.0“. They can be directly downloaded or used as WMS in QGIS.
who wants them. The project was started because most maps you think of as free
+
 
actually have legal or technical restrictions on their use, holding back people from using
+
# Open {{button|text=Data Source Manager}}  [[Image:QGIS_3.0_datasource.png|30px]]
them in creative, productive, or unexpected ways. You get access to the data you want
+
# Click {{button|text= WMS/WMTS}} [[File:Addwms.png|100px]].
and for the location you require.
+
# {{mitem|text= Layers --> New}}. Type a name for the new WMS connection e.g. {{typed|text= NDS DOP}} (Digitales Orthophoto Niedersachsen).
 +
# Type the URL : {{typed|text=https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?&request=getCapabilities&service=WMS}}
 +
[[File:qgis_add_dop20.png|400px]]
 +
# Click {{button|text=OK}}
 +
# Click {{button|text=Connect}}
 +
# Now a list of all downloadable layers appears.
 +
# Mark one of the layers and click {{button|text=Add}}
 +
[[File:qgis_wms_dop20.png|800px]]
  
'''QGIS OSM integration'''
+
==Add Corine Land Cover (CLC) classification of Germany==
 
+
Data are provided by the federal administration for carthography and geodesy (BKG) in the framework of the EU project Corine. It is based on land cover model (LBM_DE) and interpretation of satellite images with a revisit time of 3 years.
[[File:Osm-toolbar.png]]
+
Open {{button|text=Data Source Manager}}  [[Image:QGIS_3.0_datasource.png|30px]]
 
+
# Click {{button|text= WMS/WMTS}} [[File:Addwms.png|100px]].
The advantage of this integration is that you get OpenStreetMap Data “On Demand”. The plugin offers you different features.
+
# {{mitem|text= Layers --> New}}. Type a name for the new WMS connection e.g. {{typed|text= WMS CLC5 2018}} (WMS CORINE Land Cover 2018).
 
+
# Type the URL : {{typed|text=https://sgx.geodatenzentrum.de/wms_clc5_2018}}
'''Features'''
+
[[File:qgis_add_clc5.png|400px]]
* download OSM data
+
# Click {{button|text=OK}}
* load and display .osm file
+
# Click {{button|text=Connect}}
* identify nodes, ways and relations
+
# A list of downloadable layers appears.
* edit data: create, modify, delete objects
+
# Mark one of the layers and click {{button|text=Add}}
* upload changes to OSM server
+
* automatic pre-defined styles for OSM data
+
 
+
[[File:Qgis-osm.png|750px]]
+
  
Here you can see an example of styled OpenStreetMap Data coming directly from the
+
==Related articles==
OSM-Server. So it this is likely the most up to date dataset.
+
* [[OpenStreet Map layer]]
There are area limitations controlled by the OpenStreetMap Server but the plugin will
+
warn you if your area is to large. You get 3 files in the .osm format (osm point, osm line,
+
osm polygon) all these files are not editable because these are only representations. In
+
order to edit the layers you have to load the .osm file again, this will create two layers:
+
ways and nodes.
+
  
[[Category:Import data|W]]
+
[[Category: Working with Online Data Sources]]

Latest revision as of 13:03, 2 November 2022

WMS stands for Web Map Service. WMS produces maps of spatially referenced data dynamically from geographic information. These maps are rendered in a pictorial format for example PNG, GIF or JPEG. The operations can be done using a standard web browser which submitt requests in form of a URL. The OGC WMS specification standardizes the way in which maps are requested by clients and the way that servers describe their data holdings.

Contents

[edit] Clients

A growing number of clients supporting WMS or WFS standards.

  • ArcGIS
  • Quantum GIS
  • UDIG
  • OpenLayes - pure javascript library for displying map data in most web browsers

[edit] Requests

There are differnt types of requests, but only two are required by any wms server:

  • GetCapabilities - returns parameters about the WMS and the available layers
  • GetMap - with parameters provided, returns a map image

WMS.png

[edit] Add WMS layer

If you want to integrate a WMS-Layer to QGIS 3 follow these steps:

  1. Open Data Source Manager QGIS 3.0 datasource.png
  2. Click WMS/WMTS Addwms.png.
  3. Layers --> New. Type a name for the new WMS connection e.g. BKG DTK250 (Digitale Topographische Karte 1:250,000, Bundesamt für Kartographie and Geodäsie, Frankfurt).
  4. Type the URL : http://sg.geodatenzentrum.de/wms_dtk250

Qgis add dtk.png

  1. Click OK
  2. Click Connect
  3. Mark the layer dop20 and click Add

Qgis wms dtk.png

[edit] Add Google Maps layers

  1. Open Data Source Manager QGIS 3.0 datasource.png
  2. To add the Google Maps map service in QGIS 3 simply, go to XYZ Tiles in the Browser panel.
  3. Right-click on XYZ Tiles and choose XYZ Connections New.
  4. Enter the name for the WMS Service fo example: Google Satellite
  5. Copy and paste the URL: https://mt1.google.com/vt/lyrs=s&hl=en&x={x}&y={y}&z={z}
  6. Adjust the maximum zoom level 19, confirm with OK.
  7. To view inside QGIS go to the Browser panel. Unfold the XYZ Tiles and double-click or drag the XYZ Tile service to the Layers panel.
  8. Configure additional WMS connections in the same manner using the URLs of this table:
WMS Name URL
Google Satellite http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}
Google Roads https://mt1.google.com/vt/lyrs=h&x={x}&y={y}&z={z}
Google Satellite Hybrid https://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}
Google Maps https://mt1.google.com/vt/lyrs=r&x={x}&y={y}&z={z}
Bing Maps http://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g=1
OpenStreetMap Mapnick http://tile.openstreetmap.org/{z}/{x}/{y}.png
Open Topo Map https://tile.opentopomap.org/{z}/{x}/{y}.png
ESRI Base Map https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}
ESRI Topography Map http://services.arcgisonline.com/ArcGIS/rest/services/Elevation/World_Hillshade/MapServer/tile/{z}/{y}/{x}
Carto Positron https://cartodb-basemaps-a.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png
Stamen Terrain http://a.tile.stamen.com/terrain/{z}/{x}/{y}.png

[edit] Add Digital Ortho Photos (DOP) of Lower Saxony

Since 2022 digital otho photos in Lower Saxony are published as open geodata under the License „Datenlizenz Deutschland – Namensnennung – Version 2.0“. They can be directly downloaded or used as WMS in QGIS.

  1. Open Data Source Manager QGIS 3.0 datasource.png
  2. Click WMS/WMTS Addwms.png.
  3. Layers --> New. Type a name for the new WMS connection e.g. NDS DOP (Digitales Orthophoto Niedersachsen).
  4. Type the URL : https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?&request=getCapabilities&service=WMS

Qgis add dop20.png

  1. Click OK
  2. Click Connect
  3. Now a list of all downloadable layers appears.
  4. Mark one of the layers and click Add

Qgis wms dop20.png

[edit] Add Corine Land Cover (CLC) classification of Germany

Data are provided by the federal administration for carthography and geodesy (BKG) in the framework of the EU project Corine. It is based on land cover model (LBM_DE) and interpretation of satellite images with a revisit time of 3 years. Open Data Source Manager QGIS 3.0 datasource.png

  1. Click WMS/WMTS Addwms.png.
  2. Layers --> New. Type a name for the new WMS connection e.g. WMS CLC5 2018 (WMS CORINE Land Cover 2018).
  3. Type the URL : https://sgx.geodatenzentrum.de/wms_clc5_2018

Qgis add clc5.png

  1. Click OK
  2. Click Connect
  3. A list of downloadable layers appears.
  4. Mark one of the layers and click Add

[edit] Related articles

Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export