tests/perimeter.R

suppressPackageStartupMessages(library(lwgeom))
suppressPackageStartupMessages(library(sf))
nc = st_read(system.file("gpkg/nc.gpkg", package="sf"), quiet = TRUE)
nc = st_transform(nc, 3857)
st_perimeter_lwgeom(nc)[1:5]
st_perimeter_2d(nc)[1:5]

Try the lwgeom package in your browser

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

lwgeom documentation built on May 29, 2024, 9:40 a.m.