ShapeFile

public class ShapeFile
Represents the contents of ESRI shape file data.

Constructors

ShapeFile

#
public ShapeFile(string filePath)
Create a new shapefile instance from an actual shape file.
filePath (string)Location of shape file on disk.

Properties

FileCode

#
public int FileCode { get; }
Gets the file code as specified by the file. Should typically be 9994.

FileLength

#
public int FileLength { get; }
Gets the length of the file in bytes. This data is self-reported by the file and not derived from the actual file data.

FileVersion

#
public int FileVersion { get; }
Gets the version of the file. Should typically be 1000.

Shapes

#
public IEnumerable<Shape> Shapes { get; }
Gets a shape enumerator.

ShapeType

#
public ShapeType ShapeType { get; }
Gets the type of all shapes in this file.

Methods

FindShape

#
public Shape FindShape(int index)
Gets the shape with the given index.
index (int)Index of shape to retrieve.
Shape with given index or null if no such shape exists.