ESRI Shapefile Reader / Writer
ESRI.®Shapefile Reader and Writer module allows FME to read and write Esri’s shapefile format.
Shapefile格式是用于地理信息系统(GIS)软件的地理空间矢量数据格式。它由ESRI作为(大多数)开放规范的ESRI和其他GIS软件产品中的数据互操作性开发和调节。亚搏在线娱乐平台
在这个例子中,地理特征(露营地,露营地,森林,道路)以Shapefile,线条和多边形(区域)表示。每个项目通常都具有描述它的属性,例如名称,温度或XY坐标。
Overview
ESRI Shapefiles存储几何和属性的功能。没有存储拓扑信息。
A shapefile is a logical construct that consists of a series of physical files with different extensions. These extensions are added to the base name of the shapefile. All files must reside in the same folder.
Shapefile does not support small integer (16bit) or integer (32bit) data types. Instead, it supports anumber(x,y)数据类型。等效数据类型是:
- smallint (16bit): number(6,0)
- integer (32bit): number(11,0)
文件扩展名 | 内容 |
---|---|
。shp |
Shape format – the feature geometry itself. This is a variable-record-length file in which each record describes a shape (feature) with a list of its vertices. A single .shp file can contain only one type of geometry. Supported geometries are point, multipoint, polyline, polygon, and multipatch. .shp文件中的每个实体在.shx索引文件中具有相应的条目以及关联的.dbf文件中的相应属性行。这些文件中的每个文件的顺序都同步。例如,.shp文件中的第三个几何实体由.shx索引文件中的第三个条目指向。在.dbf文件的第三行中具有保存的属性。 |
。shx |
Index file that stores the index of the feature geometry. In the .shx file, each record contains the offset of the corresponding main file record from the beginning of the main file. |
。dbf |
DBASE文件(.dbf)包含特征属性,每个功能有一个记录 - 即主文件中的记录与DBASE文件中的属性之间的一对一关系 - 基于记录编号。例如,如果主文件中的几何类型是多点,则.dbf文件将为主文件中保存的每组点都有一行。如果主文件中的几何类型是点,则每个点都将有一行中的。 Attribute records in the dBASE file must be in the same order as records in the main file. 任何单个DBFS(属性)文件都可以具有2 GB的最大文件大小,DBASE III规范施加的限制。大于2 GB的文件可能是可读的,但未正式支持。大于2 GB的文件不可写,并将产生错误消息。 |
.sbn和.sbx. |
Spatial index for the geometric data. These two files will not be written unlessWrite Spatial Indexis selected in the Shapefile writer parameters dialog. |
。atx |
Attribute index for the geometric data. These files are named asfilename.attributename.atx.。 为任何用户attribu属性创建索引tes that are flagged for indexing. For more information, seeESRI Shapefile Writer:用户属性。 |
。shz | 压缩文件包含包含shapefile dataSet的所有文件。 For example,海岸will contain海岸那海岸.DBF.那海岸,以及可选的其他Shapefile,如果适用。 |
由于以下内容,Shapefile数据集大于2 GB大于2 GB的数据集被视为无效(并且可能没有使用ESRI软件创建):
- 索引文件(.shx)和主文件(.shp)之间的内部指针存储为符号为32位整数。这是操作系统架构的限制。
- Attribute files (.dbf) files also have a 2 GB size limit.
- The main file (.shp) header contains information on the size of the file, specified as a signed integer. Writing a shapefile dataset greater than 2 GB would invalidate the file header.
因为索引以“单词”测量,因此FME可以读取和写入4 GB文件。但是,这些文件可能无法与其他应用程序正常运行。此外,在一些32位操作系统上,无法从开头引用超过2 GB的文件中的位置。
Shapefiles can hold both two- and three-dimensional geometry, as well as an optional measure value on each vertex. However, all features within a single shapefile will have the same dimensionality. Note that while older Esri products may only support two-dimensional shapefiles, FME can read and write both two- and three-dimensional shapefiles. FME can also handle measure data associated with features.
笔记:可以使用聚合线性特征和聚合多边形特征聚合器变压器。They may be broken into their component pieces for output to formats that do not support aggregation using theDeaggregator.变压器。
笔记:If a polygon containing holes is written to a Shapefile, any adjacent holes will be merged into a single hole before the polygon is output.
如果FME功能包含“未命名的”度量,并且目标要素类型设置为2D +度量或3D +度量,则FME将写入该度量。
In the FME Data Inspector, these measures are labeled
The Shapefile reader will automatically load the
笔记:措施are currently not supported when reading or writing theshape_multipatch.geometry type.
Reader Overview
Shapefile读取器为包含在指定文件夹中的shapefiles中的所有功能数据产生FME功能。
- Specify Reader Format (Esri Shapefile) and Dataset (.shp file)
- 可选:指定Esri Shapefile Reader Parameters。
- 单击确定。
The Shapefile reader first scans the folder for the shapefiles that have been defined in the workspace. For each shapefile it finds, it checks to see if that file is requested by looking at the list of IDs specified in the workspace. If a match is made or no IDs were specified in the workspace, the Shapefile is opened to be read.
The Shapefile reader extracts features one at a time from the file and passes them on to the rest of FME for further processing. When the file is exhausted, the Shapefile reader starts on the next file in the folder.
作家概述
Shapefile Writer在Writer DataSet字段中指定的文件夹中创建并将功能数据写入shapefile。
- 指定写入器格式(ESRI ShapeFile)和数据集(文件夹名称)
- 可选:指定ESRI Shapefile Writer参数。
- 单击确定。
文件夹中的任何旧的shapefile都会使用新功能数据覆盖。由于特征通过FME路由到Shapefeile Writer,它确定要将其写入的文件并根据文件的类型输出它们。
Many shapefiles can be written during a single FME session.
FME Knowledge Center
标签形状Esrishape.