luukvdmeer / sfnetworks

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

Function to calculate azimuth of an edge #107

Closed luukvdmeer closed 3 years ago

luukvdmeer commented 3 years ago

Besides edge_circuity, edge_length and edge_displacement, edge_azimuth (or alternatively edge_bearing) might be a useful spatial edge measure function to add to the package. Could be a wrapper around lwgeom::st_geod_azimuth.

luukvdmeer commented 3 years ago

Is now part of develop and can be tested. Works only for geographic CRS. You can use the to_spatial_transformed morpher to temporarily change the CRS of the network.

luukvdmeer commented 3 years ago

Pushed to master as part of a new minor version