luukvdmeer / sfnetworks

Tidy Geospatial Networks in R
https://luukvdmeer.github.io/sfnetworks/
Other
347 stars 20 forks source link

Give correct warnings when duplicating attributes #84

Closed luukvdmeer closed 3 years ago

luukvdmeer commented 3 years ago

When splitting edges their attributes get duplicated. This needs a warning when attributes are not constant. Just like sf is giving:

function assumes attributes are constant over geometries of x

In sfnetworks this warning is not always given when needed.

luukvdmeer commented 3 years ago

st_blend now gives this warning when edges are splitted

luukvdmeer commented 3 years ago

to_spatial_dense morpher now also does this (on develop). I think for now that has covered all functions where splitting of edges happens.

luukvdmeer commented 3 years ago

This is now part of the new version for the functions st_network_blend and st_network_subdivision.