osmand_map_creation icon indicating copy to clipboard operation
osmand_map_creation copied to clipboard

create or integrate extract system

Open pnoll1 opened this issue 3 years ago • 1 comments

Geofabrik's extracts are limiting which areas can be built easily. Extracts aren't done according to country codes in some cases eg Dominican and haiti being combined. Some countries become unbuildable once addresses are added eg Spain or nearly unbuildable eg Mexico.

An extract system that follows iso area codes would simplify adding new countries and remove reliance on Geofabrik. The osm planet file could be downloaded and split.

With data from the useful links section, it should be possible to build with osmium extract.

Useful links: https://github.com/datasets/country-codes https://github.com/datasets/geo-countries

pnoll1 avatar Mar 10 '21 07:03 pnoll1

  • use osm2pgsql or imposm to load into postgres
  • keep data up to date with diffs
  • ogr2osm using postgis query with st_intersection and st_intersects to clip data

pnoll1 avatar Jan 24 '22 01:01 pnoll1