Skip to content

opendataby/osm-geodata

Repository files navigation

Getting geo data from OpenStreetMap

Scripts that provide next data

  • country borders
  • regions borders
  • regions borders where Minsk included to Misnk region
  • subregions borders
  • subregions borders where cities of regions subjection included to subregions
  • subregions borders where cities of regions subjection and Minsk included to subregions
  • cities borders
  • cities regions borders
  • Minsk public service voronoi division
  • BOC eparchy borders
  • RCC diocese borders

Reqirements

Database configuration

createdb osm

psql osm -c "CREATE EXTENSION hstore"
psql osm -c "CREATE EXTENSION postgis"
psql osm -c "CREATE EXTENSION postgis_topology"

psql osm -c "CREATE LANGUAGE plpythonu"

psql -f _first_aggregation_functions.sql osm
psql -f _voronoi-py.sql osm

osm2pgsql usage

osm2pgsql -c -j -G -l -C 4000 -S /lib/share/osm2pgsql/default.style -d osm --prefix=osm BY.osm.pbf

Additional SQL function

Common constants

  • osm_polygon -59065 or r59065: Belarus country
  • osm_polygon -59195 or r59195: Minsk city

About

Generating geodata from OpenStreetMap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages