Represents a network built from the polyline shapefile. More...

Public Member Functions | |
| int | Build (Shapefile Shapefile, int ShapeIndex, int FinalPointIndex, double Tolerance, AmbiguityResolution ar, ICallback cBack) |
| Builds a shape network from the specified line shapefile using the shape index to determine which shape in the shapefile is to be used as the outlet shape. More... | |
| bool | Close () |
| Closes the shape network. More... | |
| bool | DeleteShape (int ShapeIndex) |
| Deletes a shape from the shape network. More... | |
| int | get_AmbigShapeIndex (int Index) |
| Gets the shape index of an ambiguous shape in the shape network. More... | |
| double | get_DistanceToOutlet (int PointIndex) |
| Gets the distance from the specified point in the current shape to the outlet point in the shape network. More... | |
| string | get_ErrorMsg (int ErrorCode) |
| Retrieves the error message associated with the specified error code. More... | |
| bool | MoveDown () |
| Moves the current shape pointer down the network by one link. More... | |
| bool | MoveTo (int ShapeIndex) |
| Moves the current shape pointer to the shape specified by the shape index. More... | |
| bool | MoveToOutlet () |
| Moves the current shape pointer to the outlet shape in the shape network. More... | |
| bool | MoveUp (int UpIndex) |
| Moves the current shape pointer up the shape network, taking the specified path. More... | |
| bool | Open (Shapefile sf, ICallback cBack) |
| Opens a shape network. More... | |
| Grid | RasterizeD8 (bool UseNetworkBounds, GridHeader Header, double Cellsize, ICallback cBack) |
| Rasterizes the network into a D8 grid. More... | |
Properties | |
| Shape | CurrentShape [get] |
| Gets the current shape object in the shape network. More... | |
| int | CurrentShapeIndex [get] |
| Gets the index of the current shape in the shape network. More... | |
| ICallback | GlobalCallback [get, set] |
| The global callback is the interface used by MapWinGIS to pass progress and error events to interested applications. More... | |
| string | Key [get, set] |
| The key may be used by the programmer to store any string data associated with the object. More... | |
| int | LastErrorCode [get] |
| Retrieves the last error generated in the object. More... | |
| int | NetworkSize [get] |
| Gets the number of shapes in the shape network. More... | |
| int | NumDirectUps [get] |
| Gets the number of upstream shapes in the network before the next fork. More... | |
| int | ParentIndex [get, set] |
| Gets the index of the parent of the current shape. If the current shape is the outlet shape in the shape network, -1 will be returned. More... | |
| Shapefile | Shapefile [get] |
| Gets the shapefile used to create the network. More... | |
Represents a network built from the polyline shapefile.
A shape network is created from the shapes in a polyline shapefile which allows you to traverse the shapefile simulating water flowing in a watershed to a single outlet. To create a shape network from a polyline shapefile, first choose an outlet shape from the shapes in the shapefile. Next, choose an outlet point within the specified outlet shape. Finally, you need to select a tolerance value. The tolerance is used to determine whether to include a shape in the shape network if it is not connected to the network. Using this starting criteria, a shape network can be created from the polyline shapefile.
| int ShapeNetwork.Build | ( | Shapefile | Shapefile, |
| int | ShapeIndex, | ||
| int | FinalPointIndex, | ||
| double | Tolerance, | ||
| AmbiguityResolution | ar, | ||
| ICallback | cBack | ||
| ) |
Builds a shape network from the specified line shapefile using the shape index to determine which shape in the shapefile is to be used as the outlet shape.
| Shapefile | The shapefile to be used to create the shape network. |
| ShapeIndex | The index of the shape in the specified shapefile to be used as the outlet shape for the shape network |
| FinalPointIndex | The point index of the point in the specified outlet shape to be used as the outlet point for the shape network. |
| Tolerance | The tolerance used to find disconnected segments to merge into the network. |
| ar | The ambiguity resolution method used to resolve any ambiguity while building the shape network. Distance to outlet is the only ambiguity resolution method implemented. |
| cBack | Optional. The ICallback object which will receive progress and error messages during the creation of the shape network. |
| bool ShapeNetwork.Close | ( | ) |
Closes the shape network.
| bool ShapeNetwork.DeleteShape | ( | int | ShapeIndex | ) |
Deletes a shape from the shape network.
| ShapeIndex | The index of the shape to be deleted from the shape network. |
| int ShapeNetwork.get_AmbigShapeIndex | ( | int | Index | ) |
Gets the shape index of an ambiguous shape in the shape network.
The first ambiguous shape is at index 0. If there are no ambiguous shapes, AmbigShapeIndex(0) will return -1. If AmbigShapeIndex returns -1 and the index you specified isn't 0, it means there are no more ambiguous shapes in the shape network.
| Index | The index into the ambiguous shapes in the shape network. |
| double ShapeNetwork.get_DistanceToOutlet | ( | int | PointIndex | ) |
Gets the distance from the specified point in the current shape to the outlet point in the shape network.
| PointIndex | The index of a point in the current shape. |
| string ShapeNetwork.get_ErrorMsg | ( | int | ErrorCode | ) |
Retrieves the error message associated with the specified error code.
| ErrorCode | The error code for which the error message is required. |
| bool ShapeNetwork.MoveDown | ( | ) |
Moves the current shape pointer down the network by one link.
| bool ShapeNetwork.MoveTo | ( | int | ShapeIndex | ) |
Moves the current shape pointer to the shape specified by the shape index.
| ShapeIndex | The shape index of the shape in the network to move the current shape pointer to. |
| bool ShapeNetwork.MoveToOutlet | ( | ) |
Moves the current shape pointer to the outlet shape in the shape network.
| bool ShapeNetwork.MoveUp | ( | int | UpIndex | ) |
Moves the current shape pointer up the shape network, taking the specified path.
| UpIndex | The index of the shape in the shape network to use as the upstream path. This is necessary because a node may have more than one upstream path. |
Opens a shape network.
| sf | The shapefile object to open as a shape network. |
| cBack | Optional. ICallback object which will receive progress and error messages while the shape network is opened. |
| Grid ShapeNetwork.RasterizeD8 | ( | bool | UseNetworkBounds, |
| GridHeader | Header, | ||
| double | Cellsize, | ||
| ICallback | cBack | ||
| ) |
Rasterizes the network into a D8 grid.
| UseNetworkBounds | A boolean value representing whether the shape network bounds will be used as the only bounds for the D8 grid or not. |
| Header | Optional. A grid header to use to create the new grid. |
| Cellsize | Optional. The cell size to use in creating the D8 grid. |
| cBack | Optional. The ICallback object which will receive progress and error messages when the grid is being created. |
|
get |
Gets the current shape object in the shape network.
|
get |
Gets the index of the current shape in the shape network.
|
getset |
The global callback is the interface used by MapWinGIS to pass progress and error events to interested applications.
|
getset |
The key may be used by the programmer to store any string data associated with the object.
|
get |
Retrieves the last error generated in the object.
|
get |
Gets the number of shapes in the shape network.
|
get |
Gets the number of upstream shapes in the network before the next fork.
|
getset |
Gets the index of the parent of the current shape. If the current shape is the outlet shape in the shape network, -1 will be returned.
|
get |
Gets the shapefile used to create the network.