Mobile Geodatabase To File Geodatabase (Conversion)

Summary

Copies the contents of a mobile geodatabase to a new file geodatabase.

Usage

  • A mobile geodatabase uses SQLite and can be used in disconnected workflows in ArcGIS Maps SDKs apps. This tool allows you to copy the data from a mobile geodatabase to a file geodatabase so that it can be used in any client that supports file geodatabases.

Parameters

LabelExplanationData Type
Input Mobile Geodatabase

The mobile geodatabase with the contents that will be copied to a new file geodatabase.

File
Output File Geodatabase

The name and location of the output file geodatabase, for example, c:\temp\outputGeodatabases\copiedFGDB.gdb.

File

arcpy.conversion.MobileGdbToFileGdb(in_mobile_gdb, out_file_gdb)
NameExplanationData Type
in_mobile_gdb

The mobile geodatabase with the contents that will be copied to a new file geodatabase.

File
out_file_gdb

The name and location of the output file geodatabase, for example, c:\temp\outputGeodatabases\copiedFGDB.gdb.

File

Code sample

MobileGdbToFileGdb example 1 (Python window)

The following Python window script demonstrates how to use the MobileGdbToFileGdb function in immediate mode.

import arcpy
arcpy.conversion.MobileGdbToFileGdb('D:\\data\\MobileGDBs\\delta.geodatabase', 
                                    'D:\\data\\copiedGDBs\\deltaFGDB.gdb')
MobileGdbToFileGdb example 2 (stand-alone script)

The following Python window script demonstrates how to use the MobileGdbToFileGdb function in a stand-alone script using the workspace environment.

# Import system modules
import arcpy
 
# Set environment settings
arcpy.env.workspace = 'C:\\data'

# Run CopyRuntimeGdbToFileGdb
arcpy.conversion.MobileGdbToFileGdb('D:\\MobileData\\replica.geodatabase', 
                                    'replica_Copy.gdb')

Environments

Related topics