Closed warnes closed 10 months ago
Thanks; yes - sp never handled geometries without points gracefully, it's successor, sf
, should do better:
> library(sf)
Linking to GEOS 3.11.1, GDAL 3.6.2, PROJ 9.1.1; sf_use_s2() is TRUE
> st_linestring()
LINESTRING EMPTY
> st_linestring(matrix(1.0,nrow=0,ncol=2))
LINESTRING EMPTY
When
SpatialLines
is called with an empty list, it generates the error: