Creating a layer package

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 will be able to 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 will be larger in size than a layer file (because it includes the data), your users will not need to worry about access to your same data sources.

Packaging unsupported layers and datasets for previous versions will result in those items not opening when used by previous versions of the software. You will 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 are choosing 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 will 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.

TipTip:

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.

CautionCaution:

Though layer packages are supported from ArcGIS for Desktop version 9.3.1 onwards, schema-only layer packages are supported from ArcGIS for Desktop version 10.0 onwards. Layer packages will fail to open with older versions (9.2 or older) and schema-only layer packages will 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 will appear.
    Layer Package dialog box
    TipTip:

    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 will validate your layer for any errors or warnings. If any issues are discovered, a Prepare window will appear 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 will be validated for any errors and warnings. If any are found, they will 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.

TipTip:

Using the Package schema only option allows you to share a layer without its data. When the layer is unpacked, you will 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 will be important for using that layer package effectively between the 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.

7/17/2014