您的位置:首页 > 运维架构

OpenStreetMap数据导入

2016-05-02 13:50 411 查看
http://planet.openstreetmap.org/ 下载osm文件;

通过EnterpriseDB安装postgresql、postgis;

通过pgadmin.org安装pgadmin;

通过homebrew安装osm2pgsql;

创建数据库osm

createdb osm;

psql -d osm -c ‘CREATE EXTENSION postgis; CREATE EXTENSION hstore;’

osm2pgsql -c -d osm -H localhost -U postgres -W –slim CN.osm.pbf

osm2pgsql -c -d osm -H localhost -U osm -W -j CN.osm.pbf
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  OSM-postgi