Create Mobile Map (Mobile)
This tool creates a ready-to-go mobile project package for use with ArcGIS Mobile applications. Given a defined extent, this tool generates a mobile project package for selected vector and raster layers from an input map document. The output mobile project package includes a mobile project file, mobile cache schema, and data if specified. The mobile project package can then be deployed directly to devices for use in the field.
The tool is only available for use with the Microsoft Windows operating system.
By default, this tool generates a mobile cache for all layers within a map document, but only vector layers based on ArcSDE or file geodatabase data sources with global ID can be synchronized between the mobile device and ArcGIS Server. The created mobile project does not contain a synchronization task since the project is not created from a mobile map service published on a server.
The output folder must exist prior to tool execution.
By default, the tool creates a mobile project file (.amp), a mobile cache folder including a map schema, and a mobile cache. If Map Schema Only is checked, it will not add data to the mobile cache.
By default, the extent that is extracted is based on the map document's full map extent; this can be overridden by using the Extent parameter. This tool accepts valid extents specified in Environment Settings.
By default, all layers are extracted into the mobile cache.
This tool checks the Overwrite the outputs of geoprocessing operations setting found in Geoprocessing > Geoprocessing Options on the Standard toolbar to determine if an existing cache will be overwritten.
The map document to use to create a mobile project and mobile cache
The directory for the output mobile project and mobile cache
Create map schema only or map schema with mobile cache.
The extent can be specified as a string or list using four coordinates: min_x, min_y, max_x, and max_y, or by creating an extent object and setting its properties.
The names of the layers to extract
The geodatabase version from which the cache will be generated
Create a ready-to-go mobile project for a map document.
import arcpy arcpy.CreateMobileMap_mobile("c:/map/redlands.mxd", "c:/redlands_MobileProject", "","","","")
Generate a ready-to-go mobile project for a map document, override the default extent, and create map schema only.
import arcpy arcpy.CreateMobileMap_mobile("c:/map/redlands.mxd", "c:/redlands_MobileProject", "true", "-1834676.42491188 -398227.791203287 -1833518.27644341 -396875.282178691", "","")
Generate a mobile project for selected layers contained within a map document and override the default extract extent.
import arcpy map_document = "C:/map/redlands.mxd" output_folder = "C:/Mobile/DeploymentPackages/Redlands" extract_extent = "-117.274738 34.001452 -117.1115 34.135168" layers = " qa.SDE.Vents;qa.SDE.Offices" arcpy.CreateMobileMap_mobile(map_document, output_folder,"#", extract_extent, layers, "#")
The extent defining the area to be synchronized. This tool accepts the extent specified in Environment Settings.