osmcode / osmium-tool

Command line tool for working with OpenStreetMap data based on the Osmium library.

Home Page:https://osmcode.org/osmium-tool/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export custom relations with osmium-export

maning opened this issue · comments

@joto Based on the docs, osmium-export have limited functionality to export different type of relations to geojson.

We wanted to use osmium-export for custom relations very similar to type=site, where each node has custom roles.

Do we have examples of export config that does this?

Osmium export doesn't support any relations type other then multipolygon/boundary because it isn't clear what the geometry should look like for these kinds of objects. For a site relation it might make sense to create a geometry collection of (some of) its members, or it might make sense to create the hull of all these geometries for instance. But the functionality might also depend on the member roles or the tags of the members. The multipolygon/boundary relations are the main relation type in common use where the semantic of the type is actually quite well understood and consistently used, so that's implemented. But for other types this isn't necessarily the case, so this just can't be done currently with osmium alone.

@joto TYVM for the explanation.