Bug report #22055
Name/title field wrong way around for ArcGIS MapServer
|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|
Take a look at this ArcGIS mapserver:
You'll see there are two layers. Connecting to this via QGIS it will show:
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".