paleolimbot / geos

Open Source Geometry Engine ('GEOS') R API
https://paleolimbot.github.io/geos/
Other
61 stars 8 forks source link

Subset assignment crashes? #34

Closed paleolimbot closed 3 years ago

paleolimbot commented 3 years ago
library(geos)
x <- as_geos_geometry(
  c(
    "POINT EMPTY", "LINESTRING EMPTY", "POLYGON EMPTY",
    "MULTIPOINT EMPTY", "MULTILINESTRING EMPTY", "MULTIPOLYGON EMPTY",
    "GEOMETRYCOLLECTION EMPTY", NA
  )
)
x[3] <- "POINT (1 1)"
x