Open mdsumner opened 5 years ago
Well that's totally broken and hopeless. Work on a better approach from this example
library(silicate)
library(raster)
library(sf)
g <- SC0(sf::st_cast(spex::polygonize(raster(matrix(1:12, 3))), "LINESTRING"))
l2 <- SC0(SpatialLines(list(Lines(list(Line(list(rbind(c(0.2, 0.2), c(0.5, 0.5), c(0.6, 0.8), c(0.9, 0.9), c(0.2, 0.3), c(0, 0))))), "1"))))
plot(g)
plot(l2, add = TRUE, col = 1:5)
plot(c(l2, g))
Function to crush sets of SC0 objects together and renormalize indexes.