Collapse All Expand All Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: JavaScript

Visual Basic
C#
Visual C++
JavaScript

Easy GIS .NET API Reference
ShapeFile Class
Members See Also Send Feedback

.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 (Declaration)
    Public NotInheritable Class ShapeFile _
    	Implements IDisposable

C#
    public sealed class ShapeFile : IDisposable

Visual C++
    public ref class ShapeFile sealed : IDisposable

# Remarks

The class is designed to open very large shapefiles, using a low memory implementation which WILL NOT LOAD the contents of the shapefile in memory.

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, PolyLine, Polygon and PolyLineM

# Inheritance Hierarchy

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

# See Also

ShapeFile Members
EGIS.ShapeFileLib Namespace