我正在使用工具osm2pgsql将一个osm文件导入到postgres数据库中,使用phppgadmin作为管理工具。我只下载了一个小镇的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.
postgis.sql
时,出现错误Type "spheroid" already exists
。我该如何修复它? - Glory to Russia