TerriaJS / nationalmap

Australia's NationalMap
https://nationalmap.gov.au
122 stars 45 forks source link

GetFeatureInfo returning garbled response on Geoscience Australia's (ArcGis) WMSServer #1222

Closed nf-s closed 8 months ago

nf-s commented 9 months ago

Follows

Example

The “Topographic Map Indexes” layers being served through one of Geoscience Australia’s ESRI ArcGis services. These are harvested through data.gov.au - https://data.gov.au/dataset/ds-ga-278de881-0d30-4465-af21-cb9046d97224/distribution/dist-ga-278de881-0d30-4465-af21-cb9046d97224-0/details?q=topographical

When making WMS GetFeatureInfo requests, we are receiving garbled output like this:

image

The issue is the “info_format” parameter provided in GetFeatureInfo requests. The GetCapabilities response for the WMSServer advertises that “text/html” is a valid value, but when it is used it returns the garbled response. If I use “application/vnd.esri.wms_raw_xml” instead, then I get a correct response.

Info_format = application/vnd.esri.wms_raw_xml https://services.ga.gov.au/gis/services/Topographic_Map_Indexes/MapServer/WMSServer?exceptions=XML&version=1.3.0&feature_count=101&styles=default&service=WMS&request=GetFeatureInfo&layers=General_Reference_Maps_Index_1Million&bbox=15654303.392804097%2C-3130860.6785608195%2C15967389.460660178%2C-2817774.6107047386&width=256&height=256&crs=EPSG%3A3857&query_layers=General_Reference_Maps_Index_1Million&info_format=application/vnd.esri.wms_raw_xml&i=181&j=165

Info_format =text/html https://services.ga.gov.au/gis/services/Topographic_Map_Indexes/MapServer/WMSServer?exceptions=XML&version=1.3.0&feature_count=101&styles=default&service=WMS&request=GetFeatureInfo&layers=General_Reference_Maps_Index_1Million&bbox=15654303.392804097%2C-3130860.6785608195%2C15967389.460660178%2C-2817774.6107047386&width=256&height=256&crs=EPSG%3A3857&query_layers=General_Reference_Maps_Index_1Million&info_format=text%2Fhtml&i=181&j=165

Because this data is harvested through data.gov.au - we can't change the info_format. We would have to change TerriaJS default behaviour of WMS, or we'd have to add some Trait on Ckan/Group to update infoFormat for matching URLs (eg https://services.ga.gov.au/gis/services/***/MapServer/WMSServer

nf-s commented 9 months ago

GA confirm they are aware of the issue, but no fix available

nf-s commented 8 months ago

This will be fixed in next release