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

Extract building relations #172

Open
ckittl opened this issue Dec 8, 2021 · 0 comments
Open

Extract building relations #172

ckittl opened this issue Dec 8, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ckittl
Copy link
Member

ckittl commented Dec 8, 2021

/** Convenience method to extract buildings from a list of ways via their tags
*
* @param ways
* the ways to extract from
* @param specificTagValues
* only match values within the Set when given otherwise match all
*/
def extractBuildings(
ways: List[Way],
specificTagValues: Option[Set[String]] = None
): List[ClosedWay] = {
extractClosedWays(ways, KeyUtils.BUILDING, specificTagValues)
}

Buildings can also be modeled as relations (cf. https://www.openstreetmap.org/relation/1401747 or https://www.openstreetmap.org/relation/5490584)

Please add an equivalent method for that.

@ckittl ckittl added enhancement New feature or request good first issue Good for newcomers labels Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant