Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArcGIS 'Group Layer' incorrectly added by ArcGisFeatureServer #26718

Closed
qgib opened this issue Apr 30, 2018 · 3 comments
Closed

ArcGIS 'Group Layer' incorrectly added by ArcGisFeatureServer #26718

qgib opened this issue Apr 30, 2018 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Apr 30, 2018

Author Name: Bruce Steedman (Bruce Steedman)
Original Redmine Issue: 18886
Affected QGIS version: 3.0.2
Redmine category:web_services_clients/arcgis
Assignee: Sandro Mani


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.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2018

Author Name: Bruce Steedman (Bruce Steedman)


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.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2018

Author Name: Nyall Dawson (@nyalldawson)


PR: #6898


  • pull_request_patch_supplied was changed from 0 to 1
  • status_id was changed from Open to In Progress

@qgib
Copy link
Contributor Author

qgib commented May 1, 2018

Author Name: Nyall Dawson (@nyalldawson)


Applied in changeset c63260e.


  • done_ratio was changed from 0 to 100
  • status_id was changed from In Progress to Closed

@qgib qgib closed this as completed May 1, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant