Bug report #18886

ArcGIS 'Group Layer' incorrectly added by ArcGisFeatureServer

Added by Bruce Steedman over 6 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:Sandro Mani
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

Description

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.

Associated revisions

Revision c63260e1
Added by Nyall Dawson over 6 years ago

[afs] Fix group layers are incorrectly shown in browser

These layers cannot be opened so should be skipped

Fixes #18886

Revision fdafd68a
Added by Nyall Dawson over 6 years ago

[afs] Fix group layers are incorrectly shown in browser

These layers cannot be opened so should be skipped

Fixes #18886

(cherry-picked from c63260e1)

History

#1 Updated by Bruce Steedman over 6 years ago

For an example of a recursive Group Layer structure, see layer 'Jersey Gas' on the same server (a Group Layer). It has 3 sub layers, each of which is itself a 'Group Layer'. Under each of these are 2 Feature layers.

#2 Updated by Nyall Dawson over 6 years ago

  • Pull Request or Patch supplied changed from No to Yes
  • Status changed from Open to In Progress

#3 Updated by Nyall Dawson over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

Also available in: Atom PDF