postgresql - pg admin III 中没有 postgis shapefile 导入/导出管理器选项

标签 postgresql ubuntu-14.04 postgis pgadmin

我在 PgAdmin III.Postgres 版本 9.4.4-3,postgis 版本 2.1.8 中没有 PostGIS shapefile 导入/导出管理器工具。我正在使用 ubuntu 14.04。我该如何解决这个问题?

最佳答案

此过程仅在 Ubuntu 上测试过:

  1. 使用文本编辑器打开此文件(作为 sudo 用户):/usr/share/pgadmin3/plugins.d/plugins.ini

  2. 在文件末尾添加这段代码:

    ;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
    
  3. 保存并关闭文件,重启pgadmin

致谢:http://www.postgresonline.com/journal/archives/145-PgAdmin-III-Plug-in-Registration-PostGIS-Shapefile-and-DBF-Loader.html

关于postgresql - pg admin III 中没有 postgis shapefile 导入/导出管理器选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34063670/

相关文章:

用于选择工作区的Eclipse窗口 "workspace launcher"在ubuntu 14.04下不可见

linux - 无法从在另一个 docker 容器中运行的服务器连接到在 docker 中运行的 Postgis

sql - 从 sql 表中的 json 中提取所有值

postgresql - 为什么 AWS RDS 备份需要这么长时间?

PostgreSQL - 定期将数据从一个数据库复制到另一个数据库

mysql - 将mysql数据库中的表的所有列更改为大写

ruby-on-rails - 数据库错误 :Migrate "uninitialized constant DeviseCreateUsers"

linux - 使用管道和撇号时如何将 bash 命令的输出捕获到变量中?

hibernate - Wildfly 10 上的空间 hibernate 5

ruby-on-rails - 从 Rails 访问 PostGIS 空间数据