.NET ShapeFile class used to load, render and query data in an ESRI Shape File. The ShapeFile class is the main class of the EGIS.ShapeFileLib namespace

Namespace:  EGIS.ShapeFileLib
Assembly:  EGIS.ShapeFileLib (in EGIS.ShapeFileLib.dll)

Syntax

Visual Basic
Public NotInheritable Class ShapeFile _
	Implements IDisposable
C#
public sealed class ShapeFile : IDisposable
Visual C++
public ref class ShapeFile sealed : IDisposable
JavaScript
EGIS.ShapeFileLib.ShapeFile = function();

Type.createClass(
	'EGIS.ShapeFileLib.ShapeFile',
	null,
	IDisposable);

Remarks

The class is designed to open very large shapefiles, providing a low memory implementation which will not load the contents of the shapefile in memory.

The class also provides an option to map the shapefile in memory using native file mapping, which will provide faster rendering speed

NOTE THAT MANY OF THE METHODS IN THIS CLASS ARE NOT THREAD SAFE (due to internal shared buffers). If multiple threads require access to ShapeFile objects then the static (Shared in VB) Sync object should be used to provide mutual access to the shapefiles

An ESRI Shape File consists of 3 files - the ShapeFile index file (.shx), the shape file (.shp) and a DBF file (.dbf). For a more detailed desription of the ShapeFile format consult the ESRI ShapeFile file specification.

Currently supported Shape Types are Point, PointZ, PolyLine, PolyLineM, Polygon and PolygonZ

Inheritance Hierarchy

System..::..Object
  EGIS.ShapeFileLib..::..ShapeFile

See Also