WMS: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 32: Line 32:
<br>
<br>
<br>
<br>
Read below for some examples of how to use the WMS in different GIS:
Read the following pages for more information on how to add your project's WMS in different GIS:
* QGIS
* [[How_to_add_your_project%27s_WMS_in_QGIS|QGIS]]
* ArcMap
* [[How_to_add_your_project%27s_WMS_in_ArcMap|ArcMap]]
* ArcGIS Pro
* [[How_to_add_your_project%27s_WMS_in_ArcGIS_Pro|ArcGIS Pro]]
<br>
<br>
===WMS in QGIS===
For the steps on how to use a WMS in QGIS, please see 'Loading a WMS Layer', which is part of the QGIS documentation.
<br>
<br>
https://docs.qgis.org/3.4/en/docs/training_manual/online_resources/wms.html?highlight=wms
<br>
The steps about the Coordinate Reference System may be skipped.
<br>
Also notice that you can select multiple layers to add at once to your QGIS Project.
<gallery>
File:Add_wms.JPG| Add the name and WMS URL
File:Add_layer_wms.JPG| Select the layers you want to add to your QGIS Project
File:Buurten_wms.JPG|A {{software}} Overlay added to QGIS
</gallery>
===WMS in ArcMap===
For the steps on how to add the {{software}} WMS URL ArcMap, please see 'Adding WMS services', which is part of the ArcMap documentation,
<br>
<br>
http://desktop.arcgis.com/en/arcmap/10.3/map/web-maps-and-services/adding-wms-services.htm
Notice that you only have to add as WMS URL the beginning of the URL, excluding the token. The URL becomes then: "https://engine.tygron.com/web/wms"
Then, add a custom parameter with the name ''token'' and as value the actual value of the token.
[[File:Wms_arcMap.png|thumb|500px|left|Add the {{software}} WMS to ArcMap]]
<br clear=all>
===WMS in ArcGIS Pro===
For the steps on how to add the WMS URL to ArcGIS Pro, please see 'Add WMS services', which is part of the ArcGIS Pro documentation.
<br>
<br>
https://pro.arcgis.com/en/pro-app/help/data/services/add-wms-services.htm

Revision as of 13:46, 26 March 2021

Template:Learned

What is a WMS

A Web Map Service, in short WMS, is a standard in where data is published on the Internet and can be viewed in a browser. This standard is defined by the OGC, the Open Geospatial Consortium. The data is accessible through an URL and works in any browser. A WMS layer generally exists of bitmap images of a map. The data is therefore (most of the time) an image of a map and does not contain the features and attributes. This image can be used for example as a reference layer. One of the advantages of a WMS is that the data is accessible on the internet, so you can always access it (if there is internet) and you don’t have to carry files with you anymore. Also sharing data is more easily, since you just have to provide the WMS URL, instead of the data file.

How to show data from a WMS in the Tygron Platform

The data from the WMS can be imported into the Tygron Platform as an Overlay. The WMS must conform to the following requirement before it can be loaded properly into the Tygron Platform:

  • The WMS must have PNG as output format.

To import the data from the WMS, hover over the overlays button and choose the add Image overlay.

Editor → Current Situation (Ribbon tab) → Overlays (Ribbon bar)

A new overlay (named Beeldlaag) is added. Click on the right side on the Configuration Wizard. See below for the steps to follow in the Configuration Wizard.

How to insert a WMS into the Tygron Platform:
  1. Add an Image Overlay from the Overlays menu
  2. Click on the right side on the Configuration Wizard button
  3. Select the option Import from a Web Image Service
  4. Click on Add a new Image Service
  5. Choose a name for the WMS
  6. Choose a Service Type
  7. Provide the URL of the WMS (the GetCapabilities part can be omitted)
  8. Choose the dataset (layer) you want to view
  9. Choose a name for the new Overlay
  10. Finish the wizard

How to use the Tygron Platform WMS in other software

Show WMS URL

Of every project in the Tygron Platform, the Overlays can be viewed by making use of the WMS URL. The data, along with the same legend and colors can then be viewed in for example a GIS. Also, the WMS supports GetFeatureInfo requests to get data of a particular coordinate of the map. To view data in other software, first the WMS URL needs to be obtained. This can be done by going to the Tools menu and hover over Web interface.

Editor → Tools (Ribbon tab) → API Overview (Ribbon bar) → Show WMS url (Dropdown)

You will be redirected to a webpage in a browser. Copy the URL of the webpage. This URL is the WMS URL and can be used in a GIS.

Notes

Notice that the URL contains a token. This token is unique for the (editor) session. Read more about tokens on this page.
Everytime you open a project in the editor or start a new session, a new token is generated. Therefore when you close the project the WMS URL which contains this token will no longer be valid (since the session does not exist anymore) and a new WMS URL needs to be obtained when editing or starting a new session of the same project. When the project is on Keep alive, the WMS URL will stay the same. To set the project on Keep alive, go to the File tab in the Editor and check the box Keep editor session alive. Save the project. The project is then active and can be found in the Join menu.

Read the following pages for more information on how to add your project's WMS in different GIS: