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

[OSM] improve handling of closed ways #2100

Merged
merged 1 commit into from
Jun 2, 2015

Conversation

nirvn
Copy link
Contributor

@nirvn nirvn commented Jun 2, 2015

This PR adds a number of area-defining tags when considering whether a closed way tagged with highway or barrier is an area, or only a line. The proposed handling better reflects OSM's behavior (see http://wiki.openstreetmap.org/wiki/Key:area).

The commit also allows for a same closed way tagged with highway or barrier to be exported both as a polygon - when area-defining tags are present - as well as lines. For e.g., if a closed way is flagged as an amenity=embassy, and barrier=wall, the closed way will export both to a polygon, and a line.

Prior to this PR, the area intent (defined through tags) would simply be lost, and only a line would be exported.

@nirvn
Copy link
Contributor Author

nirvn commented Jun 2, 2015

This actually fixes an issue I discussed with @wonder-sk a long time ago that never ended up filed on the hub.qgis.org.

wonder-sk added a commit that referenced this pull request Jun 2, 2015
@wonder-sk wonder-sk merged commit 4157b33 into qgis:master Jun 2, 2015
@nirvn nirvn deleted the osm_closed_way_improvement-v2 branch February 1, 2016 09:31
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

Successfully merging this pull request may close these issues.

2 participants