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

Multiple polygons created with Isochrone #34

Closed
yingtaoxie opened this issue Oct 9, 2018 · 2 comments
Closed

Multiple polygons created with Isochrone #34

yingtaoxie opened this issue Oct 9, 2018 · 2 comments

Comments

@yingtaoxie
Copy link

Hi,
I am trying to create some isochrones with the package, but the resulting map always includes more than 1 polygons for a single point. Is there a reason why multiple polygons rather than just one are created?

The code I am using looks similar to the package sample:
iso <- osrmIsochrone(loc = c(36.8032934, -1.2567891), breaks = seq(from = 0, to = 10, by = 10), res = 100)

rplot

@e-kotov
Copy link

e-kotov commented Nov 21, 2018

This is probably a side effect of the mechanism for isochrone creation in osrm package: OD matrix sampling, rasterisation, then contour lines are created from the raster... therefore you see these artefacts.

Try playing around with the res argument.

Here's an overview of the possible isochrone generation techniques (in Python...). It may be useful for understanding that osrm approach is not the only one out there.
http://kuanbutts.com/2017/12/16/osmnx-isochrones/

@rCarto
Copy link
Member

rCarto commented Nov 22, 2018

thx for the reply @e-kotov

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

No branches or pull requests

3 participants