Creates an empty FeatureServer with no additional layers.
Usage
create_feature_server(
service_name,
description = "",
crs = 3857,
capabilities = c("create", "delete", "query", "update", "editing"),
query_formats = c("json", "geojson"),
initial_extent = list(xmin = NULL, xmax = NULL, ymin = NULL, ymax = NULL),
max_record_count = 1000L,
allow_updates = TRUE,
copyright = "",
has_static_data = FALSE,
xss_prevention = xss_defaults(),
token = arc_token()
)
xss_defaults()
Arguments
- service_name
Feature Service name.
- description
default blank. The description of the feature server.
- crs
default
3857
. A coordinate reference system to set for the feature server. Must be compatible withsf::st_crs()
.- capabilities
default full capabilities. Character vector of capabilities.
- query_formats
default json and geojson. May be restricted by site-wide settings.
- initial_extent
optional. A named list with element of
xmin
,xmax
,ymin
, andymax
. Values must be in the same CRS ascrs
.- max_record_count
default
1000
. The maximum number of records that can be retrieved from a layer in one request.- allow_updates
default
TRUE
. Determine if geometries can be updated.- copyright
default blank. Copyright notice to provide in the Feature Server
- has_static_data
default
FALSE
. Indicates if data is changing.- xss_prevention
cross-site-scripting prevention is enabled by default. See details for more.
- token
an
httr2_token
as created byauth_code()
or similar