结合网上几位的文章,今天终于成功连接。下面把具体步骤做一总结,方便日后查找。
1,首先,安装postgresql 64位数据库,按照提示下一步,然后再安装postgis.
安装完成后,打开arcmap,找到创建企业及数据库,实例名填写为计算机名或者localhost,如下:
但是 点击确定后提示如下错误:
"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_STGEOMETRY.dll放到postgresSql的lib目录下。ST_STGEOMETRY.dll可以从ArcGIS桌 面安装目录下获得,比如我的在C:\Program Files (x86)\ArcGIS\Desktop10.1\DatabaseSupport\PostgreSQL 让后放到C:\Program Files\PostgreSQL\9.0\lib 因为我的是默认安装,大家可以根据自己的安装路径来设置,2
2,向arcgis server中注册数据库时提示“
Cannot c