时间: 2020-09-4|tag:38次围观|0 条评论

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

文章转载于:https://www.cnblogs.com/BigFishFly/p/6337275.html

原著是一个有趣的人,若有侵权,请通知删除

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《osm2pgsql导入少字段
   

还没有人抢沙发呢~