FACTOID # 87: On average, more than 70 persons die of varicose veins per year per country.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

Encyclopedia > ESRI shapefiles

The ESRI Shapefile is a proprietary data-type used in many Geographic Information Systems software products. It was originated by ESRI primarily for use with their product ArcView. ESRI established the shapefile format. Many non-ESRI products may use the shapefile format; however they still have to meet the format established by ESRI if they wish to use the term shapefile properly. A geographic information system or geographical information system (GIS) is a system for creating and managing spatial data and associated attributes. ... ESRI was founded as Environmental Systems Research Institute in 1969 as a privately held consulting firm that specialized in land use analysis projects. ... ArcView GIS showing data for the Chesapeake Bay. ...

The files of an ESRI shapefile shown in Windows Explorer
The files of an ESRI shapefile shown in Windows Explorer

Contents

Image File history File linksMetadata Shapefile. ... Image File history File linksMetadata Shapefile. ...


Overview

A Shapefile is a digital vector storage format for storing geometric location and associated attribute information. This format lacks the capacity to store topological information. The Shapefile format is primarily created and used by ArcView GIS. Shapefiles can also be used and created in ARC/INFO, ArcGIS and other widely used GIS software. [1]


Shapefiles are very powerful because they store primitive geometrical data types of Points, Lines and Polygons. Alone, these primitives are relatively useless without any attributes to specify what the primitives represent. Therefore, a table of records will store properties/attributes for each primitive shape in the Shapefile. Shapes (points/lines/polygons) together with data attributes can create infinitely many representations about geographical data. Representation provides the ability for powerful and accurate computations.


Topology and Shapefiles

Example Files

Several example files may be found on the sites listed under links.


File Viewers

Clearly the full featured GIS products from ESRI support the Shapefile format and ESRI also has some basic standalone viewer software, however there are numerous freeware, shareware and commercial products which provide core shapefile viewer capability. Cimmetry Systems provides a viewer ESRI-view in it Autovue product.


File Converters

File components

While a Shapefile must be considered as a whole, a "Shapefile" is actually a set of files. Three individual files are manadatory and these store the core data. There are a further 8 optional individual files which store primarily index data to improve performance. Each individual file must conform to the MS DOS 8.3 naming convention (8 character filename prefix, fullstop, 3 character filename suffix such as shapefil.shp). All files in the set must be located in the same folder.


Mandatory files :

  • .shp - the file that stores the feature geometry
  • .shx - the file that stores the index of the feature geometry
  • .dbf - the dBASE, or database, file that stores the attribute information of features

Optional files : DBF can be one of five things: dBase filename extension Divorced Black Female in personal ads Decibel as referring to 1 femtowatt Drude-Born-Federov form of constitutive equations Distributed Bellman-Ford a Distance-vector routing protocol This is a disambiguation page — a navigational aid which lists other pages that... dBASE III The correct title of this article is dBASE. The initial letter is capitalized because of technical restrictions. ...

  • .sbn and .sbx - store the spatial index of the features
  • .fbn and .fbx - store the spatial index of the features for shapefiles that are read-only
  • .ain and .aih - store the attribute index of the active fields in a table or a theme's attribute table
  • .prj - the file that stores the coordinate system information
  • .shp.xml - metadata for the shapefile
  • .atx - attribute index for the .dbf file in the form of <shapefile>.<columnname>.atx (ArcGIS 8 and later)

.shp file format (main file)

The main file (.shp) contains the primary reference data in the Shapefile. The file consists of a single fixed length header followed by one or more variable length records. Each of the variable length records includes a record header component and a record contents component.


The main file header is fixed at 100 bytes in length and contains 17 fields (9 x 4 bytes and 7 x 8 bytes) with data for the File Code (9994), Unused / Reserved, File Length, Version Number, Shape Type and Bounding Box (minimum and maximum values for X, Y, Z, M).


The variable length record header is fixed at 8 bytes in length and simply contains 2 fields with data for record number and content length.


The variable length record contents depend entirely upon the Shape Type (included in the main file header) for which there is a one to one correspondence. Each shape type and its detailed

  • Null Shape (Value : 0) - 1 Field 1 Byte - essentially a holder for future data
  • Point (Value : 1) - 3 Fields (Shape Type, X, Y) - 20 Bytes
  • Polyline (Value : 3) - 6 Fields (Shape Type, Box, NumParts, NumPoints, Parts, Points) - 44+4*NumParts Bytes
  • Polygon (Value : 5) - 6 Fields (Shape Type, Box, NumParts, NumPoints, Parts, Points) - 44+4*NumParts Bytes
  • MultiPoint (Value : 8) - 4 Fields (Shape Type, Box, NumPoints, Points)
  • PointZ (Value : 11) - 5 Fields (Shape Type, X, Y, Z, Measure)
  • PolylineZ (Value : 13) - 9 Mandatory fields (Shape Type, Box, NumParts, NumPoints, Parts, Points, Zmin, Zmax, Zarray) + 3 Optional Fields (Mmin, Mmax, Marray)
  • PolygonZ (Value : 15) - 9 Mandatory fields (Shape Type, Box, NumParts, NumPoints, Parts, Points, Zmin, Zmax, Zarray) + 3 Optional Fields (Mmin, Mmax, Marray)
  • MultiPointZ (Value : 18) - 7 Mandatory fields (Shape Type, Box, NumPoints, Points, Zmin, Zmax, Zarray) + 3 Optional Fields (Mmin, Mmax, Marray)
  • PointM (Value : 21) - 4 Fields (Shape Type, X, Y, M) - Bytes
  • PolylineM (Value : 23) - 6 Mandatory fields (Shape Type, Box, NumParts, NumPoints, Parts, Points) + 3 Optional Fields (Mmin, Mmax, Marray)
  • PolygonM (Value : 25) - 6 Mandatory fields (Shape Type, Box, NumParts, NumPoints, Parts, Points) + 3 Optional Fields (Mmin, Mmax, Marray)
  • MultiPointM (Value : 28) - 4 Mandatory Fields (Shape Type, Box, NumPoints, Points) + 3 Optional Fields (Mmin, Mmax, Marray)
  • MultiPatch (Value : 31) - 10 Mandatory fields (Shape Type, Box, NumParts, NumPoints, Parts, PartTypes, Points, Zmin, Zmax, Zarray) + 3 Optional Fields (Mmin, Mmax, Marray)

.shx file format

.dbf file format

.sbn file format

Part of ArcView's spatial index. In case this file is outdated, ArcView will not display the shapefile correctly. It will appear like a lot of features have been deleted. To recreate the spatial index in ArcView, do the following:

  • Go to the table
  • Select the Shape field
  • Select Field->Remove Index from the menu
  • Select Field->Create Index from the menu

.sbx file format

.fbn file format

.fbx file format

.ain file format

.aih file format

.prj file format

.shp.xml file format

.atx file format

References

[1] USGS Coastal & Marine Geology InfoBank The United States Geological Survey (USGS) is a scientific agency of the United States government. ...


External links


  Results from FactBites:
 
ESRI Shapefiles — UMN MapServer (282 words)
ESRI is the company that introduced this format.
Each shapefile in a directory serves as a layer.
In this case the layer has the same prefix as the shapefile.
ERS/USDA Data - Population-Interaction Zones for Agriculture (PIZA): ESRI Shapefiles (64 words)
ESRI Shapefiles—A shapefile is provided for the PIZA data.
The shapefile is accompanied by an associated metadata file.
Use of the ESRI Shapefiles and the Arc/Info GRIDS requires the availability of a GIS with ArcView/ArcInfo.
  More results at FactBites »

 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your location
Your comments
Please enter the 5-letter protection code


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.