Feature request #13350

Ignore "maxRecordCount" limit when adding Vector Layer from GeoJSON ArcGIS MapServer URI

Added by Bruce Steedman about 5 years ago. Updated almost 3 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Unknown
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No Copied to github as #:21403

Description

Layer > Add Layer > Add Vector Layer displays a popup where you can select 'protocol' and import a layer from a URI.

Currently this functionality executes one query, and for ArcGIS MapServer data is thus limited by the "maxRecordCount" server parameter. The docs cover this process from the Python console here: [[https://issues.qgis.org/wiki/17/Arcgis_rest]] and mention the limitation at the bottom.

Suggestion: Offer an option to input a base Feature Layer URI (ending ../MapServer/x - where x is the layer id) via an "ignore maxRecordCount" tick box or similar on the popup. This should have the following effect:

1) send a query to get the record count: ..query?where=objectid+%3D+objectid&returnCountOnly=true&f=json
2) sends repeated queries to get the whole layer, build a single GeoJSON file and import it as 1 layer
3) optionally recursively work through group layers, add Groups for each and add each group's feature layers in each Group, sub Group etc

I have written a simple command line utility to do exactly this and save files to disk: https://github.com/MatzFan/gis_scraper, please feel free to use this if you can

Thanks

History

#1 Updated by Giovanni Manghi over 3 years ago

  • Easy fix? set to No

#2 Updated by Jürgen Fischer about 3 years ago

  • Category set to Unknown

#3 Updated by Nyall Dawson almost 3 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed
  • Description updated (diff)

The inbuilt ArcGIS feature server provider automatically does this and should be used instead of the raw json url.

Also available in: Atom PDF