Shapefile Overview

The Shapefile is an industry standard introduced by ESRI which published the Shapefile specs from ESRI.  The Library of Congress has a detailed description of the format.  Almost all of the vector GIS data available on the web is in shapefile format.

A shapefile actually consists of three binary files, and you must keep all three files together. 

    The SHP file, with the coordinates.  These are stored in binary format, but can be displayed in human readable text.  The file also has a header for the entire layer, and a header for each record.

The SHX file, an index.  These are stored in binary format. This contains:

 

  • File header, identical to that in the SHP file.
  • Bounding box for each record
  • The offset to the start of each record, its length, and the number of parts and points.
The DBF file, a dBase file with the database table containing record attributes.  This links to the shp and shx files implicitly by the implicit record number in the DBF file.

There may be additional files, but they are not standard and not documented in the ESRI specs.  MICRODEM does not use these additional files. Because MICRODEM will only use shapefiles in Lat/Long coordinates in WGS84, it is not necessary to use the extra files.  One of the extra files is the projection (PRJ file, with the projection and horizontal datum).  The absence of requiured projection information is the biggest flaw in the shapefile specification.  If you need to make a PRJ file, you can use

http://spatialreference.org/

Shapefiles in MICRODEM.


Last revision 1/8/2018