Qlik Community

Qlik GeoAnalytics Documents

Documents related to Qlik GeoAnalytics.

Announcements
Qlik Analytics Tour 2020 Online. Begins August 10th. Register Today

Setting up a WMS as a background map in Qlik GeoAnalytics

Employee
Employee

Setting up a WMS as a background map in Qlik GeoAnalytics

UPDATE! Use the Sense Map chart instead, has a convenient wizard for adding WMS layers!

https://help.qlik.com/en-US/sense/June2019/Subsystems/Hub/Content/Sense_Hub/Visualizations/Map/map-p...

QGA can consume geodata from many different sources, here's what's needed to use a WMS a background map in QGA.

Step-by-step guide

Start by figure out the correct parameters. In this case the source is a WMS with data from the Dutch city Zaanstad.

  1. Easiest way to pick up the WMS source and at the same time verify that it works is through a demo page,
    for example http://geo.zaanstad.nl/mapproxy/demo/?srs=EPSG%3A28992&format=image%2Fpng&wms_layer=Zaanstad
  2. Select CRS (coordinate system), 4326 for use together with the default adaptive basemap or 3857 with the defualt basemap. Right click on the map image and "Open image in new tab..." . Copy the image url:
    http://geo.zaanstad.nl/mapproxy/service?LAYERS=Zaanstad&FORMAT=image%2Fpng&SRS=EPSG%3A28992&EXCEPTIO...
  3. Remove the following parameters (these are filled in by the map) : BBOX, WIDTH, HEIGHT, VERSION, SRS.
    That produces the url to use: http://geo.zaanstad.nl/mapproxy/service?LAYERS=Zaanstad&FORMAT=image%2Fpng&EXCEPTIONS=application%2F...
  4. Fill in CRS and VERSION (in my example EPSG:3857 and 1.1.1 check the WMS url for the version).

    Pro tip, "Load via Server" is practical to use if the the WMS doesnt allow CORS.

    Pro tip 2, run Sense in the browser (http://localhost:4848/hub/my/work) and use the dev console (F12), good to spot errors from the WMS server.

 

Example app in Sense with the WMS layer:

Labels (1)
Attachments
Comments
Employee
Employee
Creator
Creator

Is there any instruction to set up exactly right WMS format URL from ArcGis version 10.4  above that can be consumed in Geoanalytics geolayer without any issues ?  thanks

0 Likes
Employee
Employee

Hi Wallace,

In coming releases we hope to make it easier to connect to other sources.

As of now the tutorial above is the best guide.

Thanks,

Patric

Partner
Partner

Hi Patric

We want to use REST API which requires a token in the Header authentication.

Is this possible to setup in Qlik Geo Analytics. I see only the URL.

 

Thanks

Alex

0 Likes
Employee
Employee

Sorry, not today, header tokens are not supported. Thanks, Patric

0 Likes
Contributor II
Contributor II

The approach works very well using the Layer object and the WMS Service URL. How can the GeoAnalytics Map object be set to use another base map? An URL that works as WMS Service URL does not work in the Map Object as "GeoAnalytics Server URL (needs reload)" as the Map Object expects a GeoAnalytics service. What is the recommended approach?

0 Likes
Employee
Employee

Hi,

The geodata layer is the way to set another basemap.

If the geodata layer is covering then the basemap can be set to "empty".

Use "empty meters" or "empty degrees" to work get QGA to work with arbitrary coordinate systems.

Thanks,

Patric

0 Likes
Partner
Partner

Hi Patric,

I'm trying to use this WMS as a geodata layer with GeoAnalytics maps: https://geodata.nationaalgeoregister.nl/wijkenbuurten2018/wms?LAYERS=cbs_wijken_2018&STYLES=&FORMAT=...

After removing the unnecessary parameters for the geodata layer this remains: https://geodata.nationaalgeoregister.nl/wijkenbuurten2018/wms?LAYERS=cbs_wijken_2018&STYLES=&FORMAT=...

The result is a empty white box plotted on the map as a geodata layer. There are no errors in the developers console. 

I'm using google chrome.

Do you have any idea what is going wrong here?

Regards,

Simon

0 Likes
Employee
Employee

Hi,

I can see that you are using CRS EPSG:4326 -> set the background map to default adaptive or empty degrees.

Or set the WMS to 3857 if it should allow that.

Thanks,

Patric

0 Likes
Partner
Partner
Hi Patric, I am new to the GeoAnalytics Server, and now I got a third-party map data for usage instead of the map data pack. How to configure the GeoAnalytics Server such that it is able to use that third-party map directly on the Server call towards QS? Regards, Bevan
0 Likes
Version history
Revision #:
2 of 2
Last update:
‎2019-08-19 08:51 AM
Updated by:
 
Contributors