MapWinGIS:ShapeNetwork MoveDown

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

MoveDown

Moves the current shape pointer down the network by one link.


VB.NET Usage

Function MoveDown() As Boolean

            Parameters

ReturnValue

A boolean value representing the success or failure of moving the current shape pointer down the shape network by one link.

Sample Code

    Private Sub ShapeNetworkMoveDown()
        Dim sf As New MapWinGIS.Shapefile()
        Dim shapenetwork As New MapWinGIS.ShapeNetwork()
        Dim result As Integer
        'Open a line shapefile
        sf.Open("C:\test.shp")
        'Build a shape network from the shapefile using shape 0 as the outlet shape and point 0 in shape 0 as the outlet point
        result = shapenetwork.Build(sf, 0, 0, 10, MapWinGIS.AmbiguityResolution.DISTANCE_TO_OUTLET)
        'Move the shape pointer down the network by one link
        shapenetwork.MoveDown()
    End Sub
  

VB 6 Usage
Function MoveDown() As Boolean
            Parameters

ReturnValue

A boolean value representing the success or failure of moving the current shape pointer down the shape network by one link.

Sample Code

    Private Sub ShapeNetworkMoveDown()
        Dim sf As New MapWinGIS.Shapefile
        Dim shapenetwork As New MapWinGIS.shapenetwork
        Dim result As Long
        'Open a line shapefile
        sf.Open ("C:\test.shp")
        'Build a shape network from the shapefile using shape 0 as the outlet shape and point 0 in shape 0 as the outlet point
        result = shapenetwork.Build(sf, 0, 0, 10, MapWinGIS.AmbiguityResolution.DISTANCE_TO_OUTLET)
        'Move the shape pointer down the network by one link
        shapenetwork.MoveDown
    End Sub

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:ShapeNetwork_MoveDown"

This page has been accessed 1,096 times. This page was last modified on 9 November 2005, at 17:07.