R-ArcGIS / arcgislayers

ArcGIS Location Services
http://r.esri.com/arcgislayers/
Apache License 2.0
37 stars 8 forks source link

New argument `batch_size` #141

Closed JosiahParry closed 4 months ago

JosiahParry commented 5 months ago

Is your feature request related to a problem? Please describe. This argument can be used to determine the page size of requests. The current behavior is to use the maxRecordCount field as the page size. This leads to timeouts when requesting features with large quantities of features

Describe the solution you'd like

Add an argument batch_size or page_size to arc_select() which is set to NULL by default. When the value is non-null, we use that to create the all_requests object.

This signature could look like:

arc_select(
  x,
  fields = NULL,
  where = NULL,
  crs = sf::st_crs(x),
  geometry = TRUE,
  filter_geom = NULL,
  predicate = "intersects",
  n_max = Inf,
  batch_size = NULL, 
  token = arc_token(),
  ...
)

Additional context

JosiahParry commented 5 months ago

Related: