ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • ヘルプ
  • Sign Out
ArcGIS Desktop

ArcGIS Online

組織のマッピング プラットフォーム

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS Developers

位置情報利用アプリの開発ツール

ArcGIS Solutions

各種業界向けの無料のテンプレート マップおよびテンプレート アプリケーション

ArcGIS Marketplace

組織で使えるアプリとデータを取得

  • ドキュメント
  • サポート
Esri
  • サイン イン
user
  • マイ プロフィール
  • サイン アウト

ArcMap

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • エクステンション

Creating the database in PostgreSQL for the Reviewer workspace

  • Creating the database
  • Creating schemas in the Reviewer database
  • Moving indices to rev_sde_dict_index

Creating the database

Use one of the following script examples to create a database in PostgreSQL for the Reviewer workspace.

  • Use the following script example to create the REV database using ST_Geometry.

    CREATE DATABASE rev WITH OWNER = postgres ENCODING = 'UTF8' 
    TABLESPACE=rev_sde_dict;
    
    ALTER DATABASE rev SET search_path="$user", public, sde;
    GRANT ALL ON DATABASE rev TO public;
    GRANT ALL ON DATABASE rev TO postgres;
    
  • Install PostGIS geometry.

    \connect rev
    CREATE EXTENSION postgis;
    

Creating schemas in the Reviewer database

  1. Use the following script example to create schemas in the REV database.

    \connect rev
    --'sde' schema.
    CREATE SCHEMA sde AUTHORIZATION sde;
    GRANT ALL ON SCHEMA sde TO sde;
    GRANT ALL ON SCHEMA sde TO public;
    --'rev' schema.
    CREATE SCHEMA rev authorization rev;
    GRANT USAGE ON SCHEMA rev to public;
    --'pmeditor' schema.
    CREATE SCHEMA pmeditor authorization pmeditor;
    GRANT USAGE ON SCHEMA pmeditor to public;
    GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA rev TO role_rev_rev_editor;
    --'pmviewer' schema.
    CREATE SCHEMA pmviewer autorization pmviewer;
    GRANT USAGE ON SCHEMA pmviewer to public;
    GRANT SELECT ON ALL TABLES IN SCHEMA rev TO role_rev_rev_viewer;
    

  2. Run the following script example for each user that will create data using PostGIS geometry storage.

    GRANT SELECT, INSERT, UPDATE, DELETE ON public.geometry_columns to rev;
    GRANT SELECT ON public.spatial_ref_sys to rev;
    

For more information about creating a geodatabase, see Create an enterprise geodatabase.

Moving indices to rev_sde_dict_index

  1. Use the following script example to reorder the indices:

    select schemaname, tablespace, indexname, tablespace;
    from pg_indexes
      where schemaname = 'sde'
      order by schemaname, tablename, indexname, tablespace;
    

  2. Use the following script example to move the indices:

    select 'alter text'|| schemaname||'.'||indexname||'set tablespace rev_sde_dict_index;'
    as SQLTXT
    from pg_indexes
      where schemaname = 'sde'
      order by schemaname, tablename, indexname, tablespace;
    

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2021 Esri. | プライバシー | リーガル