This article explains how to display maps from connected WMS servers in the Map Control in GraphWorX based on the example of Geoportal provided by the Polish government. The GraphWorX display file used in this example is added as an attachment.
Web Map Service (WMS) is an international standard for sharing spatial data on the Internet in raster format. Technical standards are available on the Open Geospatial Consortium (OGC) website:
http://www.opengeospatial.org/standards/wms
While the Map Control in GENESIS V11 (formerly known as EarthWorX in previous versions) supports commercial standards such as Google Maps and Esri, it is also possible to add WMS connections to other spatial data servers. One of public systems providing such data is Geoportal, which allows WMS connections to multiple different maps providing detailed views of Poland. The list of Geoportal maps available over WMS with service URLs necessary to configure the connection can be found here:
Usługiprzeglądania WMS i WMTS – Geoportal.gov.pl
WMS Connection configuration
To configure a WMS Connection for your display, add a Map Control, select it, then navigate to the Map Control Configuration tab of the GraphWorX ribbon and select Setup Connection -> Add New Connection:
In the popup window select OGC/WMS as your Map Type, write your connection name and paste the Service URL from the website linked above:
After clicking OK, if you have a connection to the WMS Server it should be listed as Available in the connections window (Setup Connection -> Manage Connections):
To display the WMS map on your control, add a layer to it or select an existing one, click on the OGC maps icon in the Map Control Configuration tab and select your WMS connection from the list:
Then click the Map Type button and select a map type from the list:
The available map types are provided by the server and not configurable - each WMS connection can show different options here.
IIS configuration
The configuration above is everything you need to display the WMS maps in desktop version of GraphWorX Runtime. If you are using an HTML5 web visualization, the server domain needs to be added in IIS settings. Do this as described in GENESIS V11 online documentation:
Displaying WMS Maps in a Web Browser
Geoportal maps display in Runtime
Here are some examples of how Geoportal maps can look like in your GENESIS web visualization: