-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion: switch to sf? #134
Comments
Way to go, Robin! More realistically, simple features do not represent networks, so creating, managing and analyzing networks still remains to be done. An advantage would be that you can constrain to |
Thanks for that - yes limiting it to |
I was thinking about this the other day. Networks are clearly important I think. If we're adopting sf then we could potentially use the PostGIS topology model (that converts simple features into topologies) in some way. |
GDAL has GNM; is that useful? Does it connect to the PostGIS topology model? |
I hadn't seen GNM before. It seems a driver could be written to connect GNM to PostGIS. GNM may be the more appropriate choice though as sf uses GDAL. Is GNM consistent with the structure of sf? |
I haven't looked into that; my assumption is that edges will be features, but a network must consist of nodes, edges, and their graph/topology. |
Yes, I agree that it would be most likely for edges to be features. I suppose you could add additional columns to represent the connecting nodes (anode, bnode). It would then need additional functions to calculate shortest paths, identify weights (could be yet another column), etc. |
Suggested policy: implement all new features that are easily implementable with sf in sf then add an argument
What do you reckon to this @richardellison? @edzer are there any issues you know of with setting sf as an import? I.e. is it a pain to install on some computers? Possible knock-on benefit: will increase knowledge of this new paradigm for spatial data in R and encourage people to upgrade their GDAL version! |
The MacOS ports are not yet on CRAN, meaning |
Ah OK, makes sense for that to get sorted then I guess. Ta 4 the info. |
Sounds reasonable but we should wait for MacOS ports unless there is a way of only optionally including it? In other words, check if sf is installed (or available on CRAN) and if not use sp only. |
Agreed. Good discussion. Closing for now and keep an eye open for sf Mac ports! |
Wondering about the costs and benefits of doing this sooner rather than later.
Thoughts @edzer? One advantage I can think of: we could refactor lots of messy sp code and learn sf in depth.
The text was updated successfully, but these errors were encountered: