encode_field_values(codes = "replace-valid") allowsusers to retain invalid values when replacing coded values. (#267)update_attachments() function modifies a featureservice’s attachmentshttps://github.com/R-ArcGIS/arcgislayers/pull/277arc_open() now works with item IDs or a variety of URLssuch as item, user, group, and morehttps://github.com/R-ArcGIS/arcgislayers/pull/275add_definition() (#178),update_definition() (#127), anddelete_definition() functions for FeatureServer andFeatureLayer objects.update_features() with an error message whentheobjectid is not aninteger (#250)get_layer() warns as expected on invalid layer namesvalues. (#251)encode_field_values() handles numeric columns withcoded value domains without warnings or errors. (#237)encode_field_values() now properly skipsrange field types (#263)update_features() is now parallelized and sends updatesin chunks seechunk_size argument andprogressarguments. The return type is now adata.frame and not alist withupdateResultsdelete_features() is now parallelized and deletes inchunks. See above.{arcgislayers} now depends on R 4.2 or higher.list_service_raster_fns() is now deprecated in favor oflist_raster_fns()filter_geom byarc_select() by warning if applyingsf::st_union() to the filter does not generate a length 1sfc, or iffilter_geom is supplied when accessing a Table,or iffilter_geom is empty (set_layer_aliases() (previously used internallybyarc_read()) to allow use of alias values with datareturned byarc_select() (#169).encode_field_values() function to supportreplacement or labeling of values with coded value domains (#134).get_layer(),get_all_layers(), andget_layers() to requireFeatureServer, MapServer, or GroupLayer input objects.arc_select() to not error out whenquery capability isn’t explicitly listed. Insteadcli_alert_danger() is used to communicate the issuehttps://github.com/R-ArcGIS/arcgislayers/pull/230arc_select() includes argument name in error messagewhen... contains non-string values.https://github.com/R-ArcGIS/arcgislayers/issues/226dplyr methods forcollect(),select(), andfilter() have been removed.https://github.com/R-ArcGIS/arcgislayers/issues/111https://github.com/R-ArcGIS/arcgislayers/issues/224https://github.com/R-ArcGIS/arcgislayers/issues/218arc_read(col_names = "alias") (usearc_read(alias = "replace") instead)page_size resulted in error due to introduction oftype-check. Fixed and added test to avoid in the future.#205arc_select() results include fewerfeatures than expected from request#220arc_raster() gains an argumentraster_fnwhich takes a character scalar and performs a raster function serverside before returning resultslist_service_raster_fns() is a new helper function tolist available raster functions for anImageServerarc_open() ignores queries included in input URLs andretains any custom queries in thequery attribute forTable andFeatureLayers. (#215)arc_open() will now work on any resource that workswhenf=json is set in the query parameters closes#163{arcpbf}when a layer supports protocol buffers.query_layer_attachments() anddownload_attachments() help you access and downloadattachments to a layerarc_raster() now downloads the exported image to a tempfile instead of creating a connection to the url returned. This fixes anissue where rasters would stop working after the url had beenremoved.alias argument toarc_read() allowingreplacement or labelling of field names with alias values (#169)pull_field_aliases() utility functionarc_select() now usesarcgisutils::rbind_results() for faster row-binding if{collapse},{data.table},{vctrs}are installed (#175)fields column names forarc_select() (fixes minor bug witharc_readhandling ofcol_names) (#185)"wkid"or"wkt" value if"latestWkid" is missing.(#188)arc_select() when layer can’t supportpagination. (#191)arc_open() no longer removesNULLproperties h/t
includespage_size argument toarc_select() allowing users to return smaller page sizesand avoid timeouts for dense geometries
Add support forGroupLayers
Addarc_read() with support forname_repair argument using{vctrs}(#108)
Addget_layer_estimates() to retrieve estimate infosuch as the number of features and the extent of the layer
Addtruncate_layer() to support truncate and appendworkflow
Add support for openingMapServershttps://github.com/R-ArcGIS/arcgislayers/pull/83
arc_open() with a layer that does not supportQuery sets then attribute toNAhttps://github.com/R-ArcGIS/arcgislayers/pull/83
<FeatureLayer <NA features, 10 fields>>arc_select() is now supported forImageServers #78
add_features() is now paginated and performed inparallel. It gains an argumentchunk_size which determinesthe maximum number of rows to be added to a feature service.
addsget_layers() which can fetch multiple itemsfrom aFeatureServer orMapServer
list_items()adds cli as an explicit import (has been implicitly imported byhttr2)
repository made public
add lifecycle badges to all exported functionshttps://github.com/R-ArcGIS/arcgislayers/pull/101
Breaking:
token arguments are required to be a validhttr2_token object (strings are not supported).host arguments are removed. Instead, the host isfetched from thetoken.user arguments are removed. Instead, the usernameis fetched from thetoken. If it is not found, an error isthrown.