Shape files are developed by ESRI. An ESRI shape file includes a main file, an index file, and a dBASE table. The suffix of the main file is [.shp].
#The operating environment of this article: Windows 7 system, Dell G3 computer.
shape fileDeveloped by ESRI, an ESRI (Environmental Systems Research Institute) shape file includes a main file, an index file, and a dBASE table. The suffix of the main file is.shp
.
The shp file consists of a fixed-length file header followed by variable-length records. Each variable-length record consists of a fixed-length record header followed by variable-length record content.
Extended information
The Shapefile format is composed of multiple files. To form a Shapefile, three files are necessary Few, they are ".shp", ".shx" and ".dbf" files respectively.
The file name prefixes for a group of files representing the same data should be the same. For example, to store geometry and attribute data about a lake, there must be three files: lake.shp, lake.shx and lake.dbf.
The suffix of the "real" Shapefile is shp. However, the data in this file alone is incomplete. The other two must be attached to form a complete set of geographical data.
In addition to these three required files, there are eight optional files, which can be used to enhance the expression ability of spatial data. All file names must follow the MS DOS 8.3 file name standard (file prefix is 8 characters, suffix is 3 characters, such as shapefil.shp);
to facilitate compatibility with some old applications performance, although many new programs now support long filenames. Additionally, all files must be in the same directory.
If you want to know more about programming learning, please pay attention to thephp trainingcolumn!
The above is the detailed content of What is the format of shp file?. For more information, please follow other related articles on the PHP Chinese website!