tests/testthat/test-envelope.R

test_that("envelope processing works", {
  x <- list(
    xmin = -122.4195,
    ymin = 37.330219000000056,
    xmax = -122.030757,
    ymax = 37.77650360000007,
    spatialReference = list(wkid = 4326L, latestWkid = 4326L)
  )

  expect_identical(
    from_envelope(x),
    sf::st_bbox(
      c(
        xmin = -122.4195,
        ymin = 37.330219000000056,
        xmax = -122.030757,
        ymax = 37.77650360000007
      ),
      crs = 4326L
    )
  )
})

Try the arcgisutils package in your browser

Any scripts or data that you put into this service are public.

arcgisutils documentation built on March 4, 2026, 9:06 a.m.