mbtyers / riverdist

River Network Distance Computation and Applications
23 stars 1 forks source link

Enabling line2network to directly accept SpatialLinesDataFrame #4

Closed jsta closed 6 years ago

jsta commented 6 years ago

I am manipulating my data with the sf package then turning it into a SpatialLinesDataFrame (with as(foo, "Spatial)). I would like to add functionality to directly feed the object to the line2network function rather than read from disk.

Does this sound like a good idea? I would add an sp argument, set the layer argument with an NA default, and read from the layer argument if is.na(sp).

mbtyers commented 6 years ago

Sure! I think that's a great idea.