Saving a layer to disk |
|
Release 9.2
Last modified August 5, 2010 |
![]() ![]() ![]() Print all topics in : "Working with layers" |
One of the main features of a layer is that it can exist outside your map as a file on disk. This makes it easy for others to access the layers you've built.
When you save a layer to disk, you save everything about the layer, such as the symbolization and labeling. When you add a layer file to another map, it will draw exactly as it was saved. Others can drop those layers onto their maps without having to know how to access the database or classify the data; this can be helpful when sharing data stored in a multiuser geodatabase with nontechnical staff members. You can share layers over the network as well as e-mail layers, along with the data, to people or enclose the layer within the data's metadata.
You can also create layers in ArcCatalog without having to open ArcMap.
The layer file that is created will reference its data source using the Data Source Options setting currently specified for the map on the Document Properties dialog box (accessed from the ArcMap File menu). By default, this setting specifies that data sources will be referenced with their full path.
If the folder connection through which the data was accessed connects to a disk using a drive letter, such as C:\ or N:\, others won't be able to access the data or preview the layer's contents unless they also access the same disk using the same drive letter. If the folder connection was created from the Network Neighborhood, the path will include the name of the computer and the share name, such as \\Blues\Shared Data. Others will be able to access the data and preview the layer's contents. However, if the data is renamed or moved, the layer files must be updated to use the new path.
Similar problems can be encountered with database connections and the layers that access data in the geodatabase. If the geodatabase is moved to a new machine or the database administrator changes the user names and passwords for accessing the geodatabase, you must update the source information for layers and database connections.
An alternative for referencing a layer's data source is to use a relative path. Suppose a folder named Forest contains both a layer and a subfolder named Data. The layer's data source is located within the data folder. With a relative path, the layer will start looking for the data source from the location in which the layer is stored. The layer will continue to work even if the Forest folder is relocated or renamed. To create a layer that uses relative paths in ArcMap, you must set the map's properties so that it uses relative paths for all layers. For more information, see Referencing data in the map.
Once you've saved the layer file, you can't change the data source options from absolute to relative or vice versa. The layer will always maintain the data source option that was set for the map document at the time you saved the layer.
You can save a layer so you can open and work with it in a previous version of ArcGIS. At ArcGIS 9.2, you can save to ArcGIS 9.0/9.1 or 8.3. ArcGIS 9.1 layer files are directly compatible with ArcGIS 9.0, so you don't need to save them separately for use in 9.0.
When you save a layer to disk, you are only saving a reference to the data source, not the data itself. When saving a layer to a previous version, keep in mind that older versions of ArcGIS may be unable to access newer data sources. For example, you can save a layer that points to any ArcGIS 9 geodatabase as an ArcGIS 8.3 layer and you'll be able to add the layer to a map in ArcGIS 8.3. However, the link to the data source will be broken because ArcGIS 8.3 can't access the newer geodatabase. Similarly, neither ArcGIS 8.3 or 9.0/9.1 can read data from a 9.2 geodatabase.
In addition, older versions of the software won't be able to support some of the functionality and properties that have been added in later versions.
Learn more about saving to previous versions of ArcGIS
Tips |
|
Tip |
|