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

highway:steps should not be polygon #5

Open
rapkin opened this issue Apr 7, 2020 · 0 comments
Open

highway:steps should not be polygon #5

rapkin opened this issue Apr 7, 2020 · 0 comments

Comments

@rapkin
Copy link

rapkin commented Apr 7, 2020

In this issue aspectumapp/osm2geojson#7 we have problem with set of tags

"conveying": "forward",
"foot": "yes",
"highway": "steps",
"incline": "up",
"indoor": "yes",
"level": "-1",
"tunnel": "yes"

As you can see here https://wiki.openstreetmap.org/wiki/Tag:highway%3Dsteps highway: steps is not polygon.

Also your lib https://github.com/tyrasd/osmtogeojson detects this geometry as Polygon (method _isPolygonFeature), but because of line

...
ways[i].nodes[0].id === ways[i].nodes[ways[i].nodes.length-1].id // ... and forms a closed ring
...

this way produce LineString in result.

What do you think about this situation? Is it possible to add highway: steps to blacklist in this repository?

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

1 participant