Open JosiahParry opened 10 months ago
Did you try Net |> convert(to_spatailly_explicit) |> activate (edges)?
No idea what magic incantation that is but
g_sf |>
tidygraph::convert(to_spatial_explicit) |>
activate(edges)
works! ! !
Even if this works with that workaround, activating the edges with spatially implicit objects should still work. Will look into it, but this is probably a bug.
@JosiahParry there are a couple of issues that opened up with your example that I'd find interesting to look into. Moving this into discussions since it is not directly related to this bug.
Inside print.sfnetwork
we use st_crs()
to show on the header. But if no geometry column is present, st_crs cannot be called. Working on a quick fix that would activate the nodes to extract the CRS everytime, since CRS should be the same for nodes and edges. @luukvdmeer, should st_crs()
work also on sfnetworks with active edges but no geometry?
Describe the bug
Cannot activate edges when missing geometry. This issue is based on Geographic Data Science with Python
Reproducible example
Expected behavior
I expect to have the edges be active.
R Session Info