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

Problem with roads shape file #4

Closed
doorleyr opened this issue Apr 10, 2019 · 2 comments
Closed

Problem with roads shape file #4

doorleyr opened this issue Apr 10, 2019 · 2 comments
Assignees

Comments

@doorleyr
Copy link
Collaborator

The reason the agents were not moving was that there were no roads in the area and the agents were constrained to move on roads. There seems to be an issue with the roads shape file. Even when I open the buildings and roads shape files together in QGIS I can see that they are not in the same area. It might be that the wrong projection is specified.

I changed the constant 'moveOnRoads' to false in the simulation so that now the agents will move in straight lines between the buildings. When we have the proper shape files we can change this back.

@agrignard
Copy link
Contributor

This is a typical problem when the road network is not totally connected. setting moveOnRoads is one option but of course having a connected road network is what we aim for.

We have implemeted in GAMA a model that connect a 'non connected road shapefile.

You can have a look at this one Library Models/Features/Data Cleaning/models

@doorleyr
Copy link
Collaborator Author

I don't think connectivity of the network is the main issue. If you run the simulation and then inspect the road 'agents' you see that the road network is somewhere far outside of the simulation area. Even opening the shape files in QGIS, you can see that the buildings shape file and the roads shape file are not in the same place. I think there's some inconsistency with the projections of the shape files. @sannailtanen can you look into this and make sure all the projections are correct?

Setting moveOnRoads to False was just a temporary solution so we could see how things are working otherwise but of course we need to solve the actual issue.

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