com.esri.arcgis.geoprocessing.tools.datamanagementtools
Class ConsolidateLayer
java.lang.Object
com.esri.arcgis.geoprocessing.AbstractGPTool
com.esri.arcgis.geoprocessing.tools.datamanagementtools.ConsolidateLayer
- All Implemented Interfaces:
- GPTool
public class ConsolidateLayer
- extends AbstractGPTool
Consolidates one or more layers by copying all data used and referenced into a single folder.
The Consolidate Layer tool is contained in the Data Management Tools tool box.
Usage tips:
- Layers that have a data source that reside in a personal geodatabase will be converted to a file geodatabase in the output folder. All other data sources such as shapefiles, coverages, etc will be consolidated in thefolder.
- If an existing folder is specified as the output folder, all existing content will be deleted and replaced with the content of the consolidated folder or package.
- For layers that contain a join or participate in a relationship class, all joined or related data sources will be consolidated into the output folder.
- For feature layers, the Extent parameter is used tothe features that will be consolidated. For raster layers , the Extent parameter is used tothe raster datasets.
- If consolidating a layer that references a controller dataset such as a Topology, Geometric Network, Network Dataset, etc, all the feature classes that participate in the layer will be consolidated.
- Every unique data source referenced by the given map document, will have a unique file geodatabase created in the consolidated folder with Convert Data to File Geodatabase checked.
- ADRG, CADRG, CIB and RPF raster formats will always convert to file geodatabse rasters. ArcGIS cannot natively write out these formats. We will always convert these raster formats to File Geodatabase rasters for efficiency.
- Compressed raster and vector formats will not be clipped when extent is specified and Convert Data to File Geodatabse is unchecked. To use an extent with compressed data sources, use the Convert options.
- This tool supports the consolidation of schemas only. The Schema Only parameter, if checked, will consolidate only the schema of the input datasource(s). A Schema is the structure or design of a feature class or table which consists of field and table definitions, coordinate system properties, symbology, defintion queries, etc. Specifying Schema Only will not consolidate any data or records.Consolidating or packaging schemas are useful for sharing editing templates.
- Data sources that do not support Schema only will not be consolidated. If SCHEMA_ONLY is checked and the tool encounters a layer that is not supported for schema only, a warning message will be displayed and that layer will be skipped. If the only layer specified is unsupported for schema only, the tool will error out and no data will be consolidated.
- Consolidating Coverage or VPF layers will copy the entire dataset into the consolidated folder.
- Tools in the package toolset create file geodatabases that are compliant with the current release.
Constructor Summary |
ConsolidateLayer()
Creates the Consolidate Layer tool with defaults. |
ConsolidateLayer(java.lang.Object inLayer,
java.lang.Object outputFolder)
Creates the Consolidate Layer tool with the required parameters. |
Method Summary |
java.lang.String |
getApplyExtentToArcsde()
Returns the Apply Extent to ArcSDE Layers Only parameter of this tool . |
java.lang.String |
getConvertArcsdeData()
Returns the Convert ArcSDE Data to File Geodatabase parameter of this tool . |
java.lang.String |
getConvertData()
Returns the Convert Data to File Geodatabase parameter of this tool . |
java.lang.Object |
getExtent()
Returns the Extent parameter of this tool . |
java.lang.Object |
getInLayer()
Returns the Input Layer parameter of this tool . |
java.lang.Object |
getOutputFolder()
Returns the Output Folder parameter of this tool . |
java.lang.String |
getSchemaOnly()
Returns the Schema Only parameter of this tool . |
java.lang.String |
getToolboxAlias()
Returns the alias of the tool box containing this tool. |
java.lang.String |
getToolboxName()
Returns the name of the tool box containing this tool. |
java.lang.String |
getToolName()
Returns the name of this tool. |
void |
setApplyExtentToArcsde(java.lang.String applyExtentToArcsde)
Sets the Apply Extent to ArcSDE Layers Only parameter of this tool . |
void |
setConvertArcsdeData(java.lang.String convertArcsdeData)
Sets the Convert ArcSDE Data to File Geodatabase parameter of this tool . |
void |
setConvertData(java.lang.String convertData)
Sets the Convert Data to File Geodatabase parameter of this tool . |
void |
setExtent(java.lang.Object extent)
Sets the Extent parameter of this tool . |
void |
setInLayer(java.lang.Object inLayer)
Sets the Input Layer parameter of this tool . |
void |
setOutputFolder(java.lang.Object outputFolder)
Sets the Output Folder parameter of this tool . |
void |
setSchemaOnly(java.lang.String schemaOnly)
Sets the Schema Only parameter of this tool . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConsolidateLayer
public ConsolidateLayer()
- Creates the Consolidate Layer tool with defaults.
Initializes the array of tool parameters with the default values specified when the tool was created.
ConsolidateLayer
public ConsolidateLayer(java.lang.Object inLayer,
java.lang.Object outputFolder)
- Creates the Consolidate Layer tool with the required parameters.
Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.
- Parameters:
inLayer
- the input layer(s) that will be consolidated.outputFolder
- the output folder that will contain the layer files and consolidated data.
getInLayer
public java.lang.Object getInLayer()
- Returns the Input Layer parameter of this tool .
This parameter is the input layer(s) that will be consolidated.
This is a required parameter.
- Returns:
- the Input Layer
setInLayer
public void setInLayer(java.lang.Object inLayer)
- Sets the Input Layer parameter of this tool .
This parameter is the input layer(s) that will be consolidated.
This is a required parameter.
- Parameters:
inLayer
- the input layer(s) that will be consolidated.
getOutputFolder
public java.lang.Object getOutputFolder()
- Returns the Output Folder parameter of this tool .
This parameter is the output folder that will contain the layer files and consolidated data.
This is a required parameter.
- Returns:
- the Output Folder
setOutputFolder
public void setOutputFolder(java.lang.Object outputFolder)
- Sets the Output Folder parameter of this tool .
This parameter is the output folder that will contain the layer files and consolidated data.
This is a required parameter.
- Parameters:
outputFolder
- the output folder that will contain the layer files and consolidated data.
getConvertData
public java.lang.String getConvertData()
- Returns the Convert Data to File Geodatabase parameter of this tool .
This parameter is specifies if input layers will be converted into file geodatabase or preserve their original format.
This is an optional parameter.
- Returns:
- the Convert Data to File Geodatabase
setConvertData
public void setConvertData(java.lang.String convertData)
- Sets the Convert Data to File Geodatabase parameter of this tool .
This parameter is specifies if input layers will be converted into file geodatabase or preserve their original format.
This is an optional parameter.
- Parameters:
convertData
- specifies if input layers will be converted into file geodatabase or preserve their original format.
getConvertArcsdeData
public java.lang.String getConvertArcsdeData()
- Returns the Convert ArcSDE Data to File Geodatabase parameter of this tool .
This parameter is specifies if input layers will be converted into file geodatabase or preserve their original format.
This is an optional parameter.
- Returns:
- the Convert ArcSDE Data to File Geodatabase
setConvertArcsdeData
public void setConvertArcsdeData(java.lang.String convertArcsdeData)
- Sets the Convert ArcSDE Data to File Geodatabase parameter of this tool .
This parameter is specifies if input layers will be converted into file geodatabase or preserve their original format.
This is an optional parameter.
- Parameters:
convertArcsdeData
- specifies if input layers will be converted into file geodatabase or preserve their original format.
getExtent
public java.lang.Object getExtent()
- Returns the Extent parameter of this tool .
This parameter is specify the extent by manually entering the coordinates in the extent parameter using the format {X-Min Y-Min X-Max Y-Max}. Additionally, to use the extent of a specific layer, simply add the layer name for the extent parameter. for example: ConsolidateLayer_management("C:/Workspace/parcels.lyr","C:/Workspace/output/parcels.lpk","CONVERT", "CONVERT_SDE", "1556900.00591249 379195.663930234 1753436.4759875 568118.813069764","ALL", "ALL)
This is an optional parameter.
- Returns:
- the Extent
setExtent
public void setExtent(java.lang.Object extent)
- Sets the Extent parameter of this tool .
This parameter is specify the extent by manually entering the coordinates in the extent parameter using the format {X-Min Y-Min X-Max Y-Max}. Additionally, to use the extent of a specific layer, simply add the layer name for the extent parameter. for example: ConsolidateLayer_management("C:/Workspace/parcels.lyr","C:/Workspace/output/parcels.lpk","CONVERT", "CONVERT_SDE", "1556900.00591249 379195.663930234 1753436.4759875 568118.813069764","ALL", "ALL)
This is an optional parameter.
- Parameters:
extent
- specify the extent by manually entering the coordinates in the extent parameter using the format {X-Min Y-Min X-Max Y-Max}. Additionally, to use the extent of a specific layer, simply add the layer name for the extent parameter. for example: ConsolidateLayer_management("C:/Workspace/parcels.lyr","C:/Workspace/output/parcels.lpk","CONVERT", "CONVERT_SDE", "1556900.00591249 379195.663930234 1753436.4759875 568118.813069764","ALL", "ALL)
getApplyExtentToArcsde
public java.lang.String getApplyExtentToArcsde()
- Returns the Apply Extent to ArcSDE Layers Only parameter of this tool .
This parameter is specifies the extent that will be used to select ArcSDE data sources.
This is an optional parameter.
- Returns:
- the Apply Extent to ArcSDE Layers Only
setApplyExtentToArcsde
public void setApplyExtentToArcsde(java.lang.String applyExtentToArcsde)
- Sets the Apply Extent to ArcSDE Layers Only parameter of this tool .
This parameter is specifies the extent that will be used to select ArcSDE data sources.
This is an optional parameter.
- Parameters:
applyExtentToArcsde
- specifies the extent that will be used to select ArcSDE data sources.
getSchemaOnly
public java.lang.String getSchemaOnly()
- Returns the Schema Only parameter of this tool .
This parameter is specifies if the schema of the input layers will be consolidated.
This is an optional parameter.
- Returns:
- the Schema Only
setSchemaOnly
public void setSchemaOnly(java.lang.String schemaOnly)
- Sets the Schema Only parameter of this tool .
This parameter is specifies if the schema of the input layers will be consolidated.
This is an optional parameter.
- Parameters:
schemaOnly
- specifies if the schema of the input layers will be consolidated.
getToolName
public java.lang.String getToolName()
- Returns the name of this tool.
- Returns:
- the tool name
getToolboxName
public java.lang.String getToolboxName()
- Returns the name of the tool box containing this tool.
- Returns:
- the tool box name
getToolboxAlias
public java.lang.String getToolboxAlias()
- Returns the alias of the tool box containing this tool.
- Returns:
- the tool box alias