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

Accept points as well as polygons as input #42

Open
mem48 opened this issue Jun 9, 2023 · 3 comments
Open

Accept points as well as polygons as input #42

mem48 opened this issue Jun 9, 2023 · 3 comments

Comments

@mem48
Copy link

mem48 commented Jun 9, 2023

In some cases, you may have OD data between a zone and a point. E.g. travel to school starts somewhere in the zones but all trips finish at a defined point.

Currently inputting a point into the zones_d argument returns

Error in st_cast.POINT(X[[i]], ...) : 
  cannot create MULTIPOLYGON from POINT
@mem48
Copy link
Author

mem48 commented Jun 9, 2023

Semi-realted If you use subpoints for origins then you must use subpoints for destinations. In my case, there is no sub-point just a single point.

@Robinlovelace
Copy link
Collaborator

Duplicate of #25

There is already a work-around which I developed for CRUSE: #31

I created a small e.g. 100 m buffer around each school and passed those to zones_d. Any reproducible example, or even better improvements to the documentation/code welcome.

@dabreegster
Copy link
Owner

Emma's hit this problem as well. In the short term, the workaround is to make a zone for each school point and make the polygon be a small circle around the point. odjitter itself could be more flexible here though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants