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

Error in Network when is adding a logic in 'inside' function #104

Open
avancinirodrigo opened this issue Apr 6, 2018 · 1 comment
Open
Assignees
Labels

Comments

@avancinirodrigo
Copy link
Contributor

The error is happening with the code in Brazil roads data:

	inside =  function(distance, road)
		if road.Situacao == "N_PAV" then
			return distance * 4
		end
		return distance
	end,
Error: Line '1781' crosses touching lines '1782' and '1783' in their endpoints. Please, split line '1781' in two where they cross.
@avancinirodrigo avancinirodrigo self-assigned this Apr 6, 2018
@avancinirodrigo
Copy link
Contributor Author

avancinirodrigo commented Apr 10, 2018

The error is happening when only in the Brazil roads data. This data was simplified in 1 meter.
After split it, another error happened:

Error: Unexpected error with lines {6016, 6056, 6454, 6625, 13996}. If you have already validated your data, report this error to system developers.

This error is associated to lines that has only 2 points and it is a router.
It can't be reproduced with a subset of roads (lines), the problem is happening only in whole data. Then, it became unfeasible to test.

The temporary solution was to add one more point in the lines with error that have 2 points.

roads.zip

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

No branches or pull requests

1 participant