MapWinGIS:ShapeNetwork Open
From MapWindow GIS
Open
Opens a shape network.
See also Shapefile
VB.NET Usage
Function Open(sf As MapWinGIS.Shapefile, Optional cBack As MapWinGIS.ICallback) As Boolean
Parameters
|
sf | The shapefile object to open as a shape network. |
| cBack | Optional. The ICallback object which will receive progress and error messages while the shape network is opened. |
| ReturnValue | A boolean value representing the success or failure of opening the shape network. |
Sample Code
Private Sub OpenShapeNetwork()
Dim sf As New MapWinGIS.Shapefile()
Dim shapenetwork As New MapWinGIS.ShapeNetwork()
'Open the shapefile
sf.Open("C:\test.shp")
'Open the shapefile as a shape network
shapenetwork.Open(sf)
End Sub
VB 6 Usage
Function Open(sf As Shapefile, Optional cBack As ICallback) As Boolean
Parameters
|
sf | The shapefile object to open as a shape network. |
| cBack | Optional. The ICallback object which will receive progress and error messages while the shape network is opened. |
| ReturnValue | A boolean value representing the success or failure of opening the shape network. |
Sample Code
Private Sub OpenShapeNetwork()
Dim sf As New MapWinGIS.Shapefile
Dim shapenetwork As New MapWinGIS.shapenetwork
'Open the shapefile
sf.Open ("C:\test.shp")
'Open the shapefile as a shape network
shapenetwork.Open (sf)
End Sub
















