ILNumerics Ultimate VS

ShapefileReader Constructor (String, String)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Use constructor to read data from a shapefile and write the data to a cell.

[ILNumerics Drawing2 Toolbox]

Namespace:  ILNumerics.Drawing.Plotting
Assembly:  ILNumerics.Toolboxes.Drawing2 (in ILNumerics.Toolboxes.Drawing2.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public ShapefileReader(
	string pathMainFile,
	string pathIndexFile
)

Parameters

pathMainFile
Type: SystemString
is a string that contains the absolute or relative path to the main file (.shp) of a shapefile.
pathIndexFile
Type: SystemString
is a string that contains the absolute or relative path to the index file (.shx) of a shapefile.
Exceptions

ExceptionCondition
ArgumentExceptionIf the input parameter [!:pathMainFile] does not lead to a .shp file.
ArgumentExceptionIf the input parameter [!:pathIndexFile] does not lead to a .shx file.
ArgumentExceptionIf the provided shapefile does not contain the shape type polygon.
ArgumentExceptionIf the provided shapefile is empty.
Remarks

This class produces a cell that contains the coordinates and indices for each record of the shapefile.

Currently, it is only possible to read shapefiles that contain the shape type polygon. It is very important to make sure that the main and index file belong to the same shapefile. This is usually indicated by the same file name. Otherwise contents might not match and will produce an exception.

[ILNumerics Drawing2 Toolbox]

See Also

Reference