码迷,mamicode.com
首页 > 数据库 > 详细

osm2pgsql导入少字段

时间:2017-01-21 17:28:16      阅读:231      评论:0      收藏:0      [点我收藏+]

标签:data   ignore   out   flow   column   tree   lan   base   max   

Explanation: osm2pgsql imports normally the data in a static database schema. The tags without a corresponding column are ignored. By adding the option -k or --hstore, osm2pgsql will add a new hstore column tags to each table and save there all tags without column.

Another way:

The default.style file https://github.com/openstreetmap/osm2pgsql/blob/master/default.style does not pick all fields into its own column,so edit default.style what you want.

参考: http://stackoverflow.com/questions/31264674/osm2pgsql-data-converting-lost-columns

http://gis.stackexchange.com/questions/135715/osm2pgsql-cant-find-maxspeed-tag-after-import

osm2pgsql导入少字段

标签:data   ignore   out   flow   column   tree   lan   base   max   

原文地址:http://www.cnblogs.com/BigFishFly/p/6337275.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!