Update Topographic Production Service Database (Topographic Production)

サマリー

Updates the database used by an instance of the Topographic Production Service.

使用法

  • The database specified in the Input Geodatabase parameter must be an enterprise database that contains the tables required for the Topographic Production Service.

  • If the database specified in the Input Geodatabase parameter does not contain the tables required for the Topographic Production Service, the tool will create them at run time.

  • If the tables in the database specified in the Input Geodatabase parameter are out of date, the tool will update them to the latest schema version.

  • If the Create backup geodatabase parameter is checked, the Input Geodatabase parameter value will be backed up to a file geodatabase at the location specified before the schema is updated.

    注意:

    Only the tables that belong to the Topographic Production Service will be copied to the backup database. This is not a full database backup.

パラメーター

ラベル説明データ タイプ
Input Geodatabase

The enterprise geodatabase that will be updated to the latest schema version and contain the tables required for the Topographic Production server-object extension (SOE).

Workspace
Create backup geodatabase
(オプション)

Specifies whether a backup geodatabase will be created.

  • Checked—A backup geodatabase will be created.
  • Unchecked—A backup geodatabase will not be created. This is the default.
Boolean
Output Backup Geodatabase
(オプション)

The file path of the backup geodatabase. This parameter is active when the Create backup geodatabse parameter is checked.

Workspace

派生した出力

ラベル説明データ タイプ
Updated Geodatabase

The updated Input Geodatabase parameter value.

Workspace

arcpy.topographic.UpdateTopographicProductionServiceDatabase(in_geodatabase, {create_backup}, {out_backup_geodatabase})
名前説明データ タイプ
in_geodatabase

The enterprise geodatabase that will be updated to the latest schema version and contain the tables required for the Topographic Production server-object extension (SOE).

Workspace
create_backup
(オプション)

Specifies whether a backup geodatabase will be created.

  • BACKUPA backup geodatabase will be created.
  • DO_NOT_BACKUPA backup geodatabase will not be created. This is the default.
Boolean
out_backup_geodatabase
(オプション)

The file path of the backup geodatabase. This parameter is supported when the create_backup parameter value is BACKUP.

Workspace

派生した出力

名前説明データ タイプ
updated_geodatabase

The updated in_geodatabase parameter value.

Workspace

コードのサンプル

UpdateTopographicProductionServiceDatabase example (stand-alone script)

The following code sample demonstrates how to use the UpdateTopographicProductionServiceDatabase function to update a database.

# Name: UpdateTopographicProductionServiceDatabase_sample.py
# Description: Updating an outdated TPS Database to the latest database version and creating a backup database.

# Import System Modules
import arcpy

# Setting the environment
arcpy.env.overwriteOutput = True

# Setting Local Variables
input_geodatabase = r'C:\Data\TPS_DB.sde'
backup_geodatabase = r'C:\Data\Backups\TPS_DB_Backup.gdb'

# Updating the outdated TPS database to the latest database version and backing it up.
arcpy.topographic.UpdateTopographicProductionServiceDatabase(input_geodatabase,"BACKUP",backup_geodatabase)

環境

このツールは、ジオプロセシング環境を使用しません。

ライセンス情報

  • Basic: No
  • Standard: 次のものが必要 Topographic Mapping
  • Advanced: 次のものが必要 Topographic Mapping

関連トピック