Skip to content

Selok/osm-regional-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

osm-regional-data

Example for import OSM data with boundary filtering

Prerequistie

Raw data

Raw data can be exported directly from OpenStreetMap, or downloaded from Geofabrik Download Server

In this case, china-latest.osm.pbf is used.

OpenStreetMap data reading tools

Download osmosis

Build the container

copy the content of source directory to your working directory

[your/working/directory/]
  ├─── china-latest.osm.pbf # latest open street map file of China
  ├─── osmosis-latest.tgz # osmosis binary package for import open street map data file
  ├─── hk.poly # poly file of Hong Kong SAR boundary
  └─── Dockerfile # docker setup file

run following script to build images

docker build -t osm-regional-data .

create your container

docker run -d --name osmdb -e POSTGRES_PASSWORD=password -p 45432:5432 osm-regional-data

Now database is setup with Hong Kong data imported.

Connection information as following:

Hostname Port Password
localhost 45432 password

About

Example for import OSM data with boundary filtering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published