我使用工具osm2pgsql使用phppgadmin作为管理工具将osm文件导入postgres数据库.我只是以xml格式从osm下载了一个小镇,我在使用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.
Run Code Online (Sandbox Code Playgroud) 我知道shp2pgsqlpostgresql目录中的位置,但我不确定之后要使用的命令.我已经彻底阅读了本手册,并且我知道该shp2pgsql命令的所有参数和选项.我收到错误:
-bash: shp2pgsql: command not found
Run Code Online (Sandbox Code Playgroud)
这可能是权限问题吗?
只是想知道是否有人将2 dim数组转换为php中的一个dim数组.我还没有在php中找到明确的解释.任何建议将不胜感激.