luukvdmeer / sfnetworks

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

Construction function for sfnetwork objects #9

Closed luukvdmeer closed 4 years ago

luukvdmeer commented 4 years ago

This should be a generic with several methods. There should at least be a method for sf objects, both with LINESTRING geometry (as demonstrated in the r-spatial blogpost) and POINT geometry (as discussed in this StackOverflow thread)

luukvdmeer commented 4 years ago

Construction function sfnetwork() is implemented. Also, there is a function as_sfnetwork() with methods for tbl_graph and sf objects. We will need more methods in the future. For that, let's open new issues.