Skip to content
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

A few GEOS functions that could enhance sfnetworks #214

Open
agila5 opened this issue Jun 23, 2022 · 0 comments
Open

A few GEOS functions that could enhance sfnetworks #214

agila5 opened this issue Jun 23, 2022 · 0 comments
Labels
feature 🎁 Request a new feature

Comments

@agila5
Copy link
Collaborator

agila5 commented Jun 23, 2022

Is your feature request related to a problem? Please describe.
Hi! I was skimming through the GEOS docs and I noticed a few functions that may be useful for this package. I will list them here. I'm not sure (if or) how these functions can be added (maybe extend the sf package or check the approach documented here).

btw: I have little to no experience in these cases, so feel free to ignore here if the following suggestions do not make sense.

Describe the solution you'd like

  1. GEOSNode(): For linear inputs, returns a new geometry in which no lines cross each other, and all touching occurs at end points. Also related to Enable edge subdivision at every edge crossing #134
  2. GEOSLineMerge(): Sews together a set of fully noded LineStrings removing any cardinality 2 nodes in the linework. I think it might be related to the "to_spatial_smooth" morpher.
  3. GEOSGeom_extractUniquePoints(): Return all distinct vertices of input geometry as a MultiPoint. Note that only 2 dimensions of the vertices are considered when testing for equality. Might be related to the building of sfnetwork objects and some morphers;

Other tools that may be useful:

  1. GEOSDensify(): add new nodes at a fixed distance;

Describe alternatives you've considered
Ignore everything here? 😅

@luukvdmeer luukvdmeer added the feature 🎁 Request a new feature label Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🎁 Request a new feature
Projects
None yet
Development

No branches or pull requests

2 participants