我在 PgAdmin III.Postgres 版本 9.4.4-3,postgis 版本 2.1.8 中没有 PostGIS shapefile 导入/导出管理器工具。我正在使用 ubuntu 14.04。我该如何解决这个问题?
最佳答案
此过程仅在 Ubuntu 上测试过:
使用文本编辑器打开此文件(作为 sudo 用户):
/usr/share/pgadmin3/plugins.d/plugins.ini
在文件末尾添加这段代码:
;PostGIS shp2pgsql-gui: ;; Title=PostGIS Shapefile and DBF loader Command=$$PGBINDIR/shp2pgsql-gui -h "$$HOSTNAME" -p $$PORT -U "$$USERNAME" -d "$$DATABASE" -W "$$PASSWORD" Description=Open a PostGIS ESRI Shapefile or Plain dbf loader console to the current database. KeyFile=$$PGBINDIR/shp2pgsql-gui Platform=unix ServerType=postgresql Database=Yes SetPassword=Yes
保存并关闭文件,重启pgadmin
关于postgresql - pg admin III 中没有 postgis shapefile 导入/导出管理器选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34063670/