微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

创建企业级地理数据库——PostgreSQL版

创建Postgresql空间数据库

填写相应的参数,选择授权文件

报错

认安装postgresql后,执行以上操作报错

"You must copy the latest ST_GEOMETRY and dependent libraries to the Postgresql software location. Refer to the ArcGIS help topics for more details. Connected RDBMS instance is not setup for Esri spatial type configuration."

原因

没有拷贝正确的ST_geometry版本到 PG lib文件夹下

官方帮助文档:在 Linux 上的 PostgreSQL 中创建地理数据库—帮助 | ArcGIS Desktop

  • windows中ST_geometry位置为 : 安装目录\ArcGIS\Desktop10.5\DatabaseSupport\Postgresql\版本号\Linux64

  • linux中需要放置ST_geometry位置:使用命令查看


[root@VM-24-4-centos data]# su postgres

bash-4.2$ pg_config --pkglibdir

/usr/lib64/pgsql

  

#若提示 pg_config : command not found, 退出postgres用户后安装postgresql-devel,再进行就OK了

yum install postgresql-devel

windows解决

windows:把三个.dll文件,拷贝至 安装目录\Postgresql\9.5\lib

重新创建企业级地理数据库,成功

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐