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
通过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
相关文章推荐
- Powershell集成OPENSSL客户端
- Linux PS命令详解
- Linux驱动开发之 三 (那些必须要了解的硬件知识 之 存储器篇)
- Linux netstat命令详解
- Linux开机自启配置
- Linux编辑器vim键盘详解
- HTop依赖包
- 维护篇 09. 忘记密码或接口 IP ❀ 飞塔 (Fortinet) 防火墙
- Hive错误:Unable to load native-hadoop library for your platform
- 轻量级自动化运维工具ansible之一:初步介绍及简单运用
- Property’s synthesized getter follows Cocoa naming
- Spark Streaming 新手指南(原始文章已经发布表在IBM Developworks)
- 读取zookeeper保存的topic元数据
- Linux CentOS6.5下编译安装MySQL 5.6
- 在ARM Linux内核中增加一个新的系统调用
- 理解RESTful架构(转载)
- apache2.4.20安装支持php7.0.6
- Linux入门基础 #7:Linux权限机制
- Linux入门基础 #6:Linux用户基础
- Linux入门基础 #5:Linux文件系统挂载管理