Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Riccardo
Partner - Creator III
Partner - Creator III

Can someone help me with wms service?

Hello, I have this wms url service:

http://www.protezionecivile.gov.it/geowebcache/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapa...

Can someone help me to add this wms into a qlik sense map?

Thanks

Riccardo

Riccardo Schillaci
BI Analyst
Datawarehouse & Business Intelligence
2 Replies
Stoyan_Terziev
Partner - Creator III
Partner - Creator III

Hi Riccardo,

 

This XML is a bit broken.

Here - I fixed it for you (First several rows needed to be removed)

Then you can use this code (pls adapt to QS first):

 

'GetFeatureInfo/Format':
LOAD Format%Table,
    %Key_WMT_MS_Capabilities_37F52D64EE5C2AEF    // Key to parent table: WMT_MS_Capabilities
FROM [Preps.xml] (XmlSimple, Table is [WMT_MS_Capabilities/Capability/Request/GetFeatureInfo/Format]);

Exit SCRIPT;
'GetLegendGraphic/Format':
LOAD Format%Table,
    %Key_WMT_MS_Capabilities_37F52D64EE5C2AEF    // Key to parent table: WMT_MS_Capabilities
FROM [Preps.xml] (XmlSimple, Table is [WMT_MS_Capabilities/Capability/Request/GetLegendGraphic/Format]);

WMT_MS_Capabilities:
LOAD version,
    [Capability/VendorSpecificCapabilities/TileSet/SRS] as [TileSet/SRS],
    [Capability/VendorSpecificCapabilities/TileSet/Resolutions] as Resolutions,
    [Capability/VendorSpecificCapabilities/TileSet/Width] as Width,
    [Capability/VendorSpecificCapabilities/TileSet/Height] as Height,
    [Capability/VendorSpecificCapabilities/TileSet/Format] as [TileSet/Format],
    [Capability/VendorSpecificCapabilities/TileSet/Layers] as Layers,
    [Capability/VendorSpecificCapabilities/TileSet/Styles/Style/Name] as [Style/Name],
    [Capability/VendorSpecificCapabilities/TileSet/Styles/Style/LegendURL/width] as width,
    [Capability/VendorSpecificCapabilities/TileSet/Styles/Style/LegendURL/height] as height,
    [Capability/VendorSpecificCapabilities/TileSet/Styles/Style/LegendURL/Format] as [LegendURL/Format],
    [Capability/VendorSpecificCapabilities/TileSet/BoundingBox/SRS] as [BoundingBox/SRS],
    [Capability/VendorSpecificCapabilities/TileSet/BoundingBox/minx] as minx,
    [Capability/VendorSpecificCapabilities/TileSet/BoundingBox/miny] as miny,
    [Capability/VendorSpecificCapabilities/TileSet/BoundingBox/maxx] as maxx,
    [Capability/VendorSpecificCapabilities/TileSet/BoundingBox/maxy] as maxy,
    [Capability/Exception/Format] as [Exception/Format],
    [Capability/Request/GetLegendGraphic/DCPType/HTTP/Get/OnlineResource/xmlns:xlink] as [GetLegendGraphic/DCPType/HTTP/Get/OnlineResource/xmlns:xlink],
    [Capability/Request/GetLegendGraphic/DCPType/HTTP/Get/OnlineResource/xlink:type] as [GetLegendGraphic/DCPType/HTTP/Get/OnlineResource/xlink:type],
    [Capability/Request/GetLegendGraphic/DCPType/HTTP/Get/OnlineResource/xlink:href] as [GetLegendGraphic/DCPType/HTTP/Get/OnlineResource/xlink:href],
    [Capability/Request/DescribeLayer/Format] as [DescribeLayer/Format],
    [Capability/Request/DescribeLayer/DCPType/HTTP/Get/OnlineResource/xmlns:xlink] as [DescribeLayer/DCPType/HTTP/Get/OnlineResource/xmlns:xlink],
    [Capability/Request/DescribeLayer/DCPType/HTTP/Get/OnlineResource/xlink:type] as [DescribeLayer/DCPType/HTTP/Get/OnlineResource/xlink:type],
    [Capability/Request/DescribeLayer/DCPType/HTTP/Get/OnlineResource/xlink:href] as [DescribeLayer/DCPType/HTTP/Get/OnlineResource/xlink:href],
    [Capability/Request/GetFeatureInfo/DCPType/HTTP/Get/OnlineResource/xmlns:xlink] as [GetFeatureInfo/DCPType/HTTP/Get/OnlineResource/xmlns:xlink],
    [Capability/Request/GetFeatureInfo/DCPType/HTTP/Get/OnlineResource/xlink:type] as [GetFeatureInfo/DCPType/HTTP/Get/OnlineResource/xlink:type],
    [Capability/Request/GetFeatureInfo/DCPType/HTTP/Get/OnlineResource/xlink:href] as [GetFeatureInfo/DCPType/HTTP/Get/OnlineResource/xlink:href],
    [Capability/Request/GetMap/Format] as [GetMap/Format],
    [Capability/Request/GetMap/DCPType/HTTP/Get/OnlineResource/xmlns:xlink] as [GetMap/DCPType/HTTP/Get/OnlineResource/xmlns:xlink],
    [Capability/Request/GetMap/DCPType/HTTP/Get/OnlineResource/xlink:type] as [GetMap/DCPType/HTTP/Get/OnlineResource/xlink:type],
    [Capability/Request/GetMap/DCPType/HTTP/Get/OnlineResource/xlink:href] as [GetMap/DCPType/HTTP/Get/OnlineResource/xlink:href],
    [Capability/Request/GetCapabilities/Format] as [GetCapabilities/Format],
    [Capability/Request/GetCapabilities/DCPType/HTTP/Get/OnlineResource/xmlns:xlink] as [GetCapabilities/DCPType/HTTP/Get/OnlineResource/xmlns:xlink],
    [Capability/Request/GetCapabilities/DCPType/HTTP/Get/OnlineResource/xlink:type] as [GetCapabilities/DCPType/HTTP/Get/OnlineResource/xlink:type],
    [Capability/Request/GetCapabilities/DCPType/HTTP/Get/OnlineResource/xlink:href] as [GetCapabilities/DCPType/HTTP/Get/OnlineResource/xlink:href],
    [Service/Name],
    [Service/Title] as Title,
    [Service/OnlineResource/xmlns:xlink],
    [Service/OnlineResource/xlink:type],
    [Service/OnlineResource/xlink:href],
    %Key_WMT_MS_Capabilities_37F52D64EE5C2AEF    // Key for this table: WMT_MS_Capabilities
FROM [Preps.xml] (XmlSimple, Table is [WMT_MS_Capabilities]);
// End of [wms-getcapabilities.xml] LOAD statements

 

 

I hope that helps!

 

Kind regards,

Stoyan

laife
Contributor
Contributor

Hi,

I have the same problem: I'm trying to use a wms server for a weather map of italy and I found the same link as Riccardo but it doesn't work.

I tryied to use the US link: 

https://nowcoast.noaa.gov/arcgis/services/nowcoast/analysis_meteohydro_sfc_qpe_time/MapServer/WMSSer...

and this works!

I don't understand how you solved this, can you explain better the steps please?

I'm pretty new to qlik.

 

Thank you!

Elena