R Under development (unstable) (2024-02-20 r85959 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > l = structure(list(as.raw(c(0x02, 0x00, 0x02, 0x02, 0x02, 0x08, 0x08))), class = "TWKB") > suppressPackageStartupMessages(library(sf)) > suppressPackageStartupMessages(library(lwgeom)) > st_as_sfc(l) Geometry set for 1 feature Geometry type: LINESTRING Dimension: XY Bounding box: xmin: 1 ymin: 1 xmax: 5 ymax: 5 CRS: NA LINESTRING (1 1, 5 5) > st_as_sfc(structure(list(l[[1]], l[[1]]), class = "TWKB")) Geometry set for 2 features Geometry type: LINESTRING Dimension: XY Bounding box: xmin: 1 ymin: 1 xmax: 5 ymax: 5 CRS: NA LINESTRING (1 1, 5 5) LINESTRING (1 1, 5 5) > > proc.time() user system elapsed 0.46 0.04 0.50