Skip to main content
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER

Setting up a WMS as a background map in Qlik GeoAnalytics

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Patric_Nordstrom
Employee
Employee

Setting up a WMS as a background map in Qlik GeoAnalytics

Last Update:

Aug 1, 2022 9:23:05 AM

Updated By:

Patric_Nordstrom

Created date:

Apr 21, 2017 8:58:02 AM

Sense Map chart

Example adding a WMS background

1. Add in Content Security Policy (Qlik SaaS)
Origin: nowcoast.noaa.gov Directive : connect-src and img-src
2. Add Map chart
3. Add background layer WMS
url: https://nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WMSServ...
version:1.3.0
crs: EPSG:3857, transparent, png, layer: Image


Note, use CRS 3857 if the base map has the Mercator projection (default).
Pick CRS 4326 if the base map has the Adaptive projection.

Link to documentation and example.

 

(QGA Extension map, old kept for reference)

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

Note, the urls below has chnaged and not working anymore, principles still applies)

  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 doesn't 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.

 

Tags (1)
Labels (2)
Comments
wallacechen
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
Patric_Nordstrom
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

alexhausmann
Partner - Contributor II
Partner - Contributor II

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
Patric_Nordstrom
Employee
Employee

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

0 Likes
IQ0
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
Patric_Nordstrom
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
simonvm9114
Partner - Contributor
Partner - Contributor

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
Patric_Nordstrom
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
bevan_kwong
Partner - Contributor
Partner - Contributor
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
Contributors
Version history
Last update:
‎2022-08-01 09:23 AM
Updated by: