add_point_to_test_ep: Add a point to EP

View source: R/utility_functions.R

add_point_to_test_epR Documentation

Add a point to EP

Description

Add a test point to the points endpoint

Usage

add_point_to_test_ep(
  endpoint,
  x = rnorm(mean = 53.317749, sd = 1, n = 1),
  y = rnorm(mean = -1.0546875, sd = 1, n = 1),
  attributes = list(id = sample(c(1:1000), 1))
)

Arguments

endpoint

the points endpoint to test against

x

the x coordinate of the point (EPSG:4326)

y

the y coordinate of the point (EPSG:4326)

attributes

the attributes of the point (a named list)

id

an integar to give the point an ID (not unique)

Details

This function is used for testing layer caching & demonstrates how to add features to an arc gis layer

Value

the status code of the response (integar)


MatthewJWhittle/getarc documentation built on April 22, 2023, 12:16 p.m.