Creates an empty FeatureServer with no additional layers.
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()
If a FeatureServer is created successfully, a FeatureServer object is returned
based on the newly created feature server's url.
Feature Service name.
default blank. The description of the feature server.
default 3857. A coordinate reference system to set for the feature server.
Must be compatible with sf::st_crs().
default full capabilities. Character vector of capabilities.
default json and geojson. May be restricted by site-wide settings.
optional. A named list with element of
xmin, xmax, ymin, and ymax. Values must be in the same CRS as crs.
default 1000. The maximum number of records that can be
retrieved from a layer in one request.
default TRUE. Determine if geometries can be updated.
default blank. Copyright notice to provide in the Feature Server
default FALSE. Indicates if data is changing.
cross-site-scripting prevention is enabled by default. See details for more.
an httr2_token as created by auth_code() or similar
if (FALSE) {
set_arc_token(auth_code())
create_feature_server("My empty feature server")
}
Run the code above in your browser using DataLab