- Improve handling of
filter_geom
byarc_select()
by warning if applyingsf::st_union()
to the filter does not generate a length 1 sfc, or iffilter_geom
is supplied when accessing a Table, or iffilter_geom
is empty (@elipousson, #166) - Export
set_layer_aliases()
(previously used internally byarc_read()
) to allow use of alias values with data returned byarc_select()
(#169). - Add new
encode_field_values()
function to support replacement or labeling of values with coded value domains (#134).
- Adjusts
arc_select()
to not error out whenquery
capability isn't explicitly listed. Insteadcli_alert_danger()
is used to communicate the issue #230 arc_select()
includes argument name in error message when...
contains non-string values. #226
dplyr
methods forcollect()
,select()
, andfilter()
have been removed. #111 #224 #218- Soft deprecate
arc_read(col_names = "alias")
(usearc_read(alias = "replace")
instead)
page_size
resulted in error due to introduction of type-check. Fixed and added test to avoid in the future. #205- Add warning if
arc_select()
results include fewer features than expected from request #220
arc_raster()
gains an argumentraster_fn
which takes a character scalar and performs a raster function server side before returning resultslist_service_raster_fns()
is a new helper function to list available raster functions for anImageServer
arc_open()
ignores queries included in input URLs and retains any custom queries in thequery
attribute forTable
andFeatureLayer
s. (#215)
arc_open()
will now work on any resource that works whenf=json
is set in the query parameters closes #163- Now uses
{arcpbf}
when a layer supports protocol buffers.- This is an ~3x speed improvement over json processing.
- New
query_layer_attachments()
anddownload_attachments()
help you access and download attachments to a layer arc_raster()
now downloads the exported image to a temp file instead of creating a connection to the url returned. This fixes an issue where rasters would stop working after the url had been removed.- Add
alias
argument toarc_read()
allowing replacement or labelling of field names with alias values (#169) - Add
pull_field_aliases()
utility function arc_select()
now usesarcgisutils::rbind_results()
for faster row-binding if{collapse}
,{data.table}
,{vctrs}
are installed (#175)- Preserve order of
fields
column names forarc_select()
(fixes minor bug witharc_read
handling ofcol_names
) (#185) - Set CRS for a FeatureLayer or ImageServer using
"wkid"
or"wkt"
value if"latestWkid"
is missing. (#188) - Fix issue with
arc_select()
when layer can't support pagination. (#191)
- initial CRAN release
-
arc_open()
no longer removesNULL
properties h/t @elipousson -
includes
page_size
argument toarc_select()
allowing users to return smaller page sizes and avoid timeouts for dense geometries -
Add support for
GroupLayer
s -
Add
arc_read()
with support forname_repair
argument using{vctrs}
(#108) -
Add
get_layer_estimates()
to retrieve estimate info such as the number of features and the extent of the layer -
Add
truncate_layer()
to support truncate and append workflow -
Add support for opening
MapServers
#83 -
arc_open()
with a layer that does not supportQuery
sets then
attribute toNA
#83- Print method will show something like
<FeatureLayer <NA features, 10 fields>>
- Print method will show something like
-
arc_select()
is now supported forImageServer
s #78 -
add_features()
is now paginated and performed in parallel. It gains an argumentchunk_size
which determines the maximum number of rows to be added to a feature service. -
adds
get_layers()
which can fetch multiple items from aFeatureServer
orMapServer
- new utility function
list_items()
- new utility function
-
adds cli as an explicit import (has been implicitly imported by httr2)
-
repository made public
-
add lifecycle badges to all exported functions #101
-
Breaking:
token
arguments are required to be a validhttr2_token
object (strings are not supported).- all
host
arguments are removed. Instead, the host is fetched from thetoken
. - all
user
arguments are removed. Instead, the username is fetched from thetoken
. If it is not found, an error is thrown.