ArcGIS10.8.1適配HIGHGO V4.5

1.ArcGIS連接數(shù)據(jù)庫并啟用企業(yè)級地理數(shù)據(jù)庫

1.1.環(huán)境準備

名稱 版本
HighGoDB 安全版V4.5
ArcGIS 10.8.1

1.2.創(chuàng)建用戶及庫并賦權(quán)

創(chuàng)建用戶及庫

psql highgo sysdba
create user sde password 'Qwer@1234';
create database sde owner sde;
\q 退出

image

關閉三權(quán)

psql highgo syssso
select set_secure_param('hg_sepofpowers','off');
\q 退出

#數(shù)據(jù)庫重啟生效
pg_ctl restart

image

賦予sde超級管理員權(quán)限

psql highgo sysdba
alter user sde superuser;
\q 退出

image

1.3.連接準備

從ArcGISMap的database依賴庫文件copy至HGDB中。

ArcGISMap地址為:D:\ArcGIS\Desktop10.8\DatabaseSupport\PostgreSQL\12\Linux64

HGDB的路徑為:/opt/highgo/hgdb-see-4.5.8/lib/postgresql

image

image

注意:如果數(shù)據(jù)庫認證方式是sm3,需要將arcgis的libpq.dll替換。將D:\ArcGIS\Desktop10.8\bin\libpq.dll用下面的的dll替換

office

1.4.數(shù)據(jù)庫連接

打開ArcCatalog,添加數(shù)據(jù)庫連接

image

輸入實例、用戶名、密碼和數(shù)據(jù)庫

數(shù)據(jù)庫平臺:PostgreSQL

實例:192.168.100.101,5866

用戶名:sde

密碼:Qwer@1234

數(shù)據(jù)庫:sde

image

報錯:角色“sde@192”不存在

image

highgo=# create user "sde@192" password 'Qwer@1234';
CREATE ROLE

報錯:數(shù)據(jù)庫“postgres”不存在

image

highgo=# create database postgres owner sde;
CREATE DATABASE

雙擊連接到 192.168.100.101.sde

image

1.5.啟用企業(yè)級地理數(shù)據(jù)庫

右鍵數(shù)據(jù)庫連接,啟用地理數(shù)據(jù)庫。

image

image

點擊確定,等待啟用完成

image

啟用完成,查看數(shù)據(jù)庫

image

2.創(chuàng)建企業(yè)級地理數(shù)據(jù)庫

2.1.數(shù)據(jù)庫準備

Text
--sysdba登錄數(shù)據(jù)庫
psql highgo sysdba
--設置sysdba為超級管理員
alter user sysdba superuser;
--新建postgres數(shù)據(jù)庫
create database postgres;

2.2.創(chuàng)建企業(yè)級地理數(shù)據(jù)庫

打開ArcCatalog,依次打開工具箱→系統(tǒng)工具箱→Data Management Tools→地理數(shù)據(jù)庫管理→創(chuàng)建企業(yè)級地理數(shù)據(jù)庫

image

創(chuàng)建企業(yè)級地理數(shù)據(jù)庫,信息如下:

數(shù)據(jù)庫平臺:PostgreSQL

實例為數(shù)據(jù)庫:192.168.100.101,5866

數(shù)據(jù)庫:sde (可自定義)

數(shù)據(jù)庫管理員:sysdba

數(shù)據(jù)庫管理員密碼:xxxx

地理數(shù)據(jù)庫管理員密碼:xxxx

授權(quán)文件:授權(quán)文件絕對路徑

image

點擊確定

image

查看數(shù)據(jù)庫

image

3.創(chuàng)建地圖

打開ArcMap

image

點擊確定

image

導入要素類,在連接到 192.168.222.57.sde上右鍵,選擇導入,要素類(多個)

image

image

選擇輸入要素

image

點擊添加

image

點擊確定,下方滾動條

image

導入完成

image

image

查看數(shù)據(jù)庫

image

將要素拖拽地圖中,并調(diào)整

image