inst/tinytest/test_extent.R

# intersection of disjoint envelopes is NULL
a <- ext(c(xmin = 0, xmax = 10, ymin = 0, ymax = 10))
b <- ext(c(xmin = 100, xmax = 101, ymin = 100, ymax = 101))
expect_null(intersect(a, b))

Try the terra package in your browser

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

terra documentation built on May 29, 2024, 12:33 p.m.