加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

arcgis10.1连接postgres总结

(2014-03-24 08:54:51)
根据官方要求arcgis10.1支持postgres9.0与9.1,但在实际安装过程中发现9.1不能创建空间数据库(可能是我的方法不对,有兴趣的可尝试),现将一些注意点列出来:
1、安装完成创建空间数据库时提示“
  1. You must copy the latest ST_GEOMETRY and dependent libraries to the PostgreSQL software location. Refer to the ArcGIS help topics for more details.  
  2.   
  3. Connected RDBMS instance is not setup for Esri spatial type configuration.

解决方法:
将ST_Geometry的dll拷贝到相应的数据库位置,那么这个ST_Geometry的dll在我们的ArcGIS Desktop或者ArcGIS Server的安装文件里面都有

比如ArcGIS Desktop在C:\Program Files (x86)\ArcGIS\Desktop10.1\DatabaseSupport\PostgreSQL\Windows64路径下,将该dll拷贝到PostgreSQL的相关路径下

一定要记住路径是在%PGHOME%/lib里面即可,如果拷贝的位置不对,系统还会报上面的错误的

注意:本人实践时postgres9.0正常,9.1和9.3不能正常使用,也可能重装后重启一下系统可能生效,因9.0是在第二天安装的。


2、向arcgis server中注册数据库时提示“

Cannot connect to  database because the database client software failed to load. Be sure the

database client software is installed and configured correctly”
原因:server是64位的,需要64位的客户端
解决办法:将64位的客户端程序即:
  1. Libpq.dll  
  2. Libeay32.dll  
  3. Libintl.dll  
  4. Ssleay32.dll

拷贝到server的bin目录下,本人是从arcsde中直接拷过来的比较方便。

另外由于desktop是32位程序,需要32位的客户端,将以下文件复制到desktop的bin目录下

  1. Libpq.dll  
  2. Libiconv-2.dll  
  3. Libeay32.dll  
  4. Libintl-8.dll  
  5. Ssleay32.dll

参考地址:http://blog.csdn.net/linghe301/article/details/8081688


0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有