我使用工具 osm2pgsql 将 osm 文件导入使用 phppgadmin 作为管理工具的 postgres 数据库。我只从 osm 以 xml 格式下载了一个小镇,我无法使用 mac 上的终端导入它。我对此有点菜鸟,所以任何帮助将不胜感激。我看过几篇文章,但没有一篇文章能提供我需要的清晰度以满足我的需求。
谢谢
我得到这个错误可能是一些小的不确定..
Using projection SRS 900913 (Spherical Mercator)
Setting up table: planet_osm_point
NOTICE: table "planet_osm_point" does not exist, skipping
NOTICE: table "planet_osm_point_tmp" does not exist, skipping
SELECT AddGeometryColumn('planet_osm_point', 'way', 900913, 'POINT', 2 );
failed: ERROR: function addgeometrycolumn(unknown, unknown, integer, unknown, integer) does not exist
LINE 1: SELECT AddGeometryColumn('planet_osm_point', 'way', 900913, ...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.