ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Saving layers and layer packages

  • Saving a layer file
  • Saving a layer package

Saving a layer file

A layer can exist outside your map as a layer file (.lyr). This makes it easy for others to access the layers you have built.

You can share layers over the network and by e-mail.

When a layer file is added to other maps, it will draw exactly as it was saved as long as it has access to the data referenced by the layer. A common way to support this is to use relative paths to each layer's data source.

When you save a layer file using either the Standard or Maplex Label Engine, that information is stored in the layer file. If you add a layer file saved with the Maplex Label Engine to a .mxd using the Standard Label Engine, the Label Engine Warning dialog box appears and you can decide whether to upgrade the data frame to the Maplex Label Engine.

Tip:

If you select the Don't warn me again ever option on the Label Engine Warning dialog box, this information is saved in a registry setting. To return the error messages later you must delete the registry key value HKEY_CURRENT_USER\Software\ESRI\Desktop10.8\ArcMap\Settings\SkipLabelEngineCheck.

Using full paths, relative paths, or UNC paths in the layer's data reference

The layer file that is created references its data source using the Data Source Options setting specified for the map document. By default, this setting specifies that data sources are referenced with their full paths. However, you can also use other conventions to record paths. See Referencing data in the map for more information.

Set this property before you save your layer.

Saving a layer to a previous version of ArcGIS

You can save a layer and work with it in a previous version of ArcGIS. For example, you can save to ArcGIS 9.3.

When saving a layer to a previous version, keep in mind that older versions of ArcGIS may be unable to access newer data sources in the current release. For example, a layer that points to an ArcGIS 10.8.2 geodatabase is not compatible with earlier versions of ArcGIS.

Learn more about saving to previous versions of ArcGIS

Steps for saving a map layer

  1. Right-click the layer name and click Save as Layer File.
  2. Type in the name of your new layer file.
  3. Optionally choose to save a layer to a previous version of ArcMap using the Save as type drop-down.
    Save Layer file
  4. Click Save.

Saving a layer package

A layer can be saved with its data as a layer package (.lpk). A layer package includes both the layer properties and the dataset referenced by the layer. With a layer package, you can save and share everything about the layer—its symbolization, labeling, field properties, and the data.

Other users can add layer packages directly into their maps without having to know how to access the database or classify the data. Layer packages can be created in ArcMap, ArcGlobe, and ArcScene and can be shared between these applications, including ArcGIS Explorer. When using ArcGlobe or ArcScene, 3D properties can be added to a map layer and included in a layer package.

While a layer package is larger in size than a layer file (because it includes the data), others do not need to worry about access to your same data sources.

Packaging unsupported layers and datasets for previous versions results in those items not opening when used by previous versions of the software. You may receive a warning for content that will not be available in previous versions of ArcGIS when packaging your layer. Layer packages support multiple versions of ArcGIS; therefore, consider the layers and data sources you choose to package to ensure they are available in previous versions of the software.

Additionally, a layer can be saved as a schema-only layer package. This type of package allows you to share your layer design and the corresponding data model design without sharing your data. When you unpack a schema-only layer package you may be prompted to create a new geodatabase or pick an existing one, and the data model for the layers will be loaded into that geodatabase. You can then load your own datasets for the layers in that geodatabase.

Tip:

For a finer degree of control over how data is packaged, you can use the Package Result geoprocessing tool. For example, you can specify that only data within the current map extent is packaged or that enterprise database data is to be extracted for inclusion in the package.

Caution:

Though layer packages are supported from ArcGIS Desktop version 9.3.1 onwards, schema-only layer packages are supported from ArcGIS Desktop version 10.0 onwards. Layer packages fail to open with older versions (9.2 or older) and schema-only layer packages fail to open with version 9.3.1 or older.

Steps for saving a data layer package

  1. Right-click the layer and select Create Layer Package. The Layer Package dialog box opens.
    Layer Package dialog box
    Tip:

    You can share multiple layers in your map by selecting several layers and clicking Create Layer Package.

  2. Specify where to save your layer package and give it a name—either as a file on disk or in your ArcGIS Online account for sharing.
  3. You can choose to include data from an enterprise (ArcSDE) geodatabase (Include Enterprise Geodatabase data instead of referencing the data).
  4. Under Item Description, provide a Summary and Tags for your layer package.
  5. Specify Additional Files you want to include in the layer package. This option allows you to include other content, such as detailed documentation, reports, graphs, and so on. The following types of files are not allowed to be included in the package: .js, .vbs, .py, .pyc, .pyo, .bat, and .ocx. Also, only signed .dlls and .exes are allowed to be included.

    Learn more about signing dlls and exes

  6. You must Analyze your layer before you can save it to disk or share it at ArcGIS Online. When you run Analyze, it validates your layer for any errors or warnings. If any issues are discovered, a Prepare window appears with a list of the errors and warnings.

    Right-click each Prepare message to get more information, read help for the error, and click suggested fixes.

    The Prepare window with creating layer packages
    When you run Analyze on a layer to create a layer package, your layer is validated for any errors and warnings. If any are found, they appear in this dialog box.
  7. Click Share to create your layer package.

Steps for saving a schema-only layer package

The steps for creating a schema-only layer package are the same as the steps outlined above for saving a layer data package except that in step 3, you choose Package schema only option to create a schema-only layer package.

Tip:

Using the Package schema only option allows you to share a layer without its data. When the layer is unpacked, you may be prompted to create the new datasets for the layers in a geodatabase.

Steps for packaging 3D map layer properties

Enabling 3D properties for a layer package is important for using that layer package effectively between different 3D visualization environments (ArcGlobe, ArcScene, and ArcGIS Explorer). The properties must be set first, then saved to a local layer file.

For more information on using layers and layer packages in ArcGIS Explorer, see Working with ArcGIS layers and layer packages.

  1. Start ArcGlobe or ArcScene and add the map layer (or layer package) that you created in ArcMap.
  2. Set the desired 3D properties. For example, setting the height properties to extrude features in 3D, setting the distance range for a map layer's visibility in 3D, and so on.
  3. Right-click the layer in ArcGlobe or ArcScene and choose Create Layer Package.
  4. Follow the steps outlined above to complete the creation of a layer package.

Related topics

  • An overview of the Package toolset
  • Creating a map package
  • Adding data from ArcGIS Online

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal