Update Topographic Production Service Database (Topographic Production)

Summary

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

Usage

  • 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.

    Caution:

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

Parameters

LabelExplanationData Type
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
(Optional)

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
(Optional)

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

Workspace

Derived Output

LabelExplanationData Type
Updated Geodatabase

The updated Input Geodatabase parameter value.

Workspace

arcpy.topographic.UpdateTopographicProductionServiceDatabase(in_geodatabase, {create_backup}, {out_backup_geodatabase})
NameExplanationData Type
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
(Optional)

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
(Optional)

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

Workspace

Derived Output

NameExplanationData Type
updated_geodatabase

The updated in_geodatabase parameter value.

Workspace

Code sample

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)

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Requires Topographic Mapping
  • Advanced: Requires Topographic Mapping

Related topics