planetiler icon indicating copy to clipboard operation
planetiler copied to clipboard

[FEATURE] Support multiple OSM sources

Open mourner opened this issue 5 months ago • 2 comments

Is your feature request related to a problem? When trying to add multiple OSM sources to a Planetiler profile, it throws the following error:

https://github.com/onthegomap/planetiler/blob/edaead9c3d1ec0153f3857e8eda2450184b8a079/planetiler-core/src/main/java/com/onthegomap/planetiler/Planetiler.java#L191-L192

Additional context I want to generate a map containing multiple neighboring countries, using multiple Geofabrik extracts.

Describe alternatives you've considered In theory, I can try concatenating two osm.pbf files into one file and use that as a single source, but that seems pretty hacky, and it doesn't allow using different settings for each source (e.g. registering different process functions).

mourner avatar Jul 04 '25 13:07 mourner

Hello! I think this should be doable. There are a few singleton values that get pulled out of the osm file that would need to be merged across multiple files (bounding box, source timestamp/replication number, etc). There may be some issues to work out if a profile like openmaptiles has logic that depends on seeing all nodes before all ways or if it does work in a hook that runs after an osm source finishes.

msbarry avatar Jul 06 '25 09:07 msbarry

Somewhat related to #666

cmahnke avatar Nov 06 '25 17:11 cmahnke