Save To Layer File (Data Management) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
The Save To Layer File tool creates an output layer file that references geographic data stored on disk.
Usage tips
The input layer can be an in-memory layer created by the Make Feature Layer tool, a layer file stored on disk, or a feature layer in ArcMap.
The feature layer or layer file may have a subset of records and fields.
Refresh the catalog tree if the created layer does not immediately show up in ArcCatalog.
The following environment settings affect this tool: workspace, scratch workspace, Extent, M Domain, Configuration keyword, Coordinate system, Output has M values, Output spatial grid, Output has Z values, Default Z value, Output XY domain, and Output Z domain.
Command line syntax
An overview of the Command Line window
SaveToLayerFile_management <in_layer> <out_layer>
Parameter | Explanation | Data Type |
<in_layer> |
The in-memory layer created by the Make Feature Layer tool or a layer file stored on disk. |
Layer |
<out_layer> |
The output layer file to be created. |
Layer File |
SaveToLayerfile_management transport D:\Workspace\transport.lyr
Scripting syntax
About getting started with writing geoprocessing scripts
SaveToLayerFile_management (in_layer, out_layer)
Parameter | Explanation | Data Type |
in_layer (Required) |
The in-memory layer created by the Make Feature Layer tool or a layer file stored on disk. |
Layer |
out_layer (Required) |
The output layer file to be created. |
Layer File |
import arcgisscripting gp = arcgisscripting.create() gp.workspace = "D:/Workspace.mdb" gp.savetolayerfile "transport", "transport.lyr"