Create a MultiLineString Item (or a LineString Item) covering all connected places which can be reached from a position, within a given cost. When the cost is related to time, this query is often called an Isochrone.
Visual Basic |
---|
Public Function CreateIsoRoute( _ ByVal x As Double, _ ByVal y As Double, _ ByVal z As Double, _ ByVal r As Double, _ ByVal isoVal As Double, _ ByVal formula As String, _ ByVal filter As String, _ ByVal locusNoGo As String _ ) As Integer |
The expression, or simple property, to use in the route finding calculation as the "cost" of a Link item. For example, using the simple property Length will find the shortest route, and using the expression "_length#/Speed#", provided each Link has a user-defined Speed# property, will find the quickest route. Any expression may be used, although if a string expression is used it must be a string representation of a numeric value. See Property Expression Syntax for details.
Optionally specifies a named Spatial Filter through which no route may pass.
The named Spatial Filter used ("NoGo" in the following examples) will normally have its testing mode set to exclude any Items which cross it, using a call similar to the following:CreateLocusFromItem("NoGo",SIS_GT_INTERSECT,SIS_GM_GEOMETRY)
This method can find a route over any geometry, not just Link/Node topology, by specifying an empty string for this argument. In this case, length is used as the cost.
Available: GEO MM ME MD OM OD OV SISpy
Group:
This example converts length travelled at 30 mph to minutes, i.e. '5280' feet in a mile, '3.2808' feet in a metre.
sis.CreateIsoRoute (2000, 1500, 10, 30, 15, "_length#/((30*5280/3.2808)/60)", "links", "NoGo" )
Send comments on this topic.
Click to return to www.cadcorp.com
© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).