创建企业级地理数据库——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

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

posted @   壮壮壮壮壮  阅读(172)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
点击右上角即可分享
微信分享提示