Bug report #22055

Name/title field wrong way around for ArcGIS MapServer

Added by Jonathan Moules 6 months ago.

Status:Open
Priority:Normal
Assignee:Sandro Mani
Category:Web Services clients/ArcGIS
Affected QGIS version:3.4.3 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29869

Description

Take a look at this ArcGIS mapserver:

http://geoportal-geoportail.gc.ca/arcgis/rest/services/SpeciesatRisk/DFOCriticalHabitat_EN/MapServer

You'll see there are two layers. Connecting to this via QGIS it will show:
Title: 0
Name: DFO Species at Risk Critical Habitat 2016

But this is the wrong way around. The "title" field is meant to be the human representation (at least for OGC services), and the name field is meant to be the id for the layer.

Yes, I know that in the JSON (http://geoportal-geoportail.gc.ca/arcgis/rest/services/SpeciesatRisk/DFOCriticalHabitat_EN/MapServer/0?f=pjson) the "name" field actually has the layer title in it, but that's because ESRI are using the "name" as a OGC "title", and the "id" is the OGC "name".

Also available in: Atom PDF