ILNumerics - Technical Application Development
Assembly: ILNumerics.Toolboxes.Drawing2 (in ILNumerics.Toolboxes.Drawing2.dll) Version: 5.5.0.0 (5.5.7503.3146)
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
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
Exception | Condition |
---|---|
ArgumentException | If the input parameter [!:pathMainFile] does not lead to a .shp file. |
ArgumentException | If the input parameter [!:pathIndexFile] does not lead to a .shx file. |
ArgumentException | If the provided shapefile does not contain the shape type polygon. |
ArgumentException | If 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