Label | Explanation | Data Type |
Input Mobile Geodatabase
| The mobile geodatabase that will have its contents 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 |
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 Runtime apps. This tool allows you to copy the data from your mobile geodatabase to a file geodatabase so that it can be used in any client that supports file geodatabases.
Parameters
arcpy.conversion.MobileGdbToFileGdb(in_mobile_gdb, out_file_gdb)
Name | Explanation | Data Type |
in_mobile_gdb | The mobile geodatabase that will have its contents 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
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')
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
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes