FAQ: What is the difference between a shapefile and a layer file?
【相关信息】
Article ID: 40057
Software:
ArcGIS - ArcEditor 9.3, 9.3.1, 10
ArcGIS - ArcInfo 9.3, 9.3.1, 10
ArcGIS - ArcView 9.3, 9.3.1, 10
Platforms:
Windows XP, Windows 7
【问题描述】
What is the difference between a shapefile and a layer file?
Article ID: 40057
Software:
ArcGIS - ArcEditor 9.3, 9.3.1, 10
ArcGIS - ArcInfo 9.3, 9.3.1, 10
ArcGIS - ArcView 9.3, 9.3.1, 10
Platforms:
Windows XP, Windows 7
【问题描述】
What is the difference between a shapefile and a layer file?
1 个回复
易智瑞技术支持
赞同来自:
A shapefile (.shp) is a vector data storage format for storing the location, shape, and attributes of geographic features. A shapefile is stored in a set of related files and contains one feature class.
A layer file (.lyr) is a file that stores the path to a source dataset and other layer properties, including symbology.
In comparison to a shapefile, a layer file is a just a link\reference to actual data, such as a shapefile, feature class, etc. It is not actual data because it does not store the data's attributes or geometry. A layer file primarily stores the symbology for a feature and other layer properties related to what is seen when the data is viewed in a GIS application.
For example, if a layer file is sent to a user on another machine without the data it was created from, it does not display on the map because it does not contain the source data. To get the data to display properly, the user must have the layer file and the shapefile it references.
This is where utilizing layer packages eases the processing of migrating data, because layer packages store both the layer file and source data. For more information about layer packages, see the Web help topic
Creating Layer Packages.
【创建及修改时间】
Created: 3/20/2012
Last Modified: 4/20/2012
【原文链接】
http://support.esri.com/en/kno ... 40057
要回复问题请先登录或注册