Bug report #18886
ArcGIS 'Group Layer' incorrectly added by ArcGisFeatureServer
|Category:||Web Services clients/ArcGIS|
|Affected QGIS version:||3.0.2||Regression?:||No|
|Operating System:||Ubuntu 18.04 LTS||Easy fix?:||No|
|Pull Request or Patch supplied:||Yes||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||26718|
I have added a connection to following Feature Server url: http://dcw7.digimap.je/arcgis/rest/services/JerseyUtilities/JerseyUtilities/MapServer
When I look at the layers added they include layer id 39 'JT'. This is layer type 'Group Layer' which includes sub layers; 'Structure' and 'Ducts' (both of which are listed).
If I try to add the JT layer to my project I get an error message saying "Layer is not valid: The layer crs='EPSG:4326' url='http://dcw7.digimap.je/arcgis/rest/services/JerseyUtilities/JerseyUtilities/MapServer/39' is not a valid layer and can not be added to the map. Reason: AFSProvider Failed to determine geometry type"
This is not surprising, as Group Layers are simple a structure to group related Feature Layers under - they have no features themselves & thus no geometry type.
What I expect to happen:-
Either these layers should simply be ignored when the server layers are parsed, or - perhaps as an enhancement - they should be included as drop down titles in the layer list, i.e. mirroring the server. Note that AFAIK Group Layers can be recursive, not simply one layer deep.
Workaround is to ignore these 'bogus' layers.
[afs] Fix group layers are incorrectly shown in browser
These layers cannot be opened so should be skipped