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: 否
  • Standard: 需要 Topographic Mapping
  • Advanced: 需要 Topographic Mapping

相关主题