English

How To: Create a Dynamic Segmentation demo No. 2

Procedure

Before attempting the following procedure, go through demo No. 1. A link to the knowledge base article that contains demo No. 1 is provided in Related Information.

Instructions provided describe how to create two bus routes (bus-id = 20 and bus-id = 10) that partially overlap each other along a common arc. It also describes how to convert a portion of an arc into a section and shows how the MAKEROUTE command in arcedit can combine sections into a route.

Begin by creating a simple line cover C comprised of a vertical line intersected by two horizontal lines as shown below.

|
|
|
|
------------------------------------
|
|
|
|
------------------------------------
|
|
|
|

arc60>cw demo2
w demo2
generate c
line
1
0,1000
4000,1000
end
2
0,3000
4000,3000
end
3
2000,0
2000,4000
end
end
q
clean
clean c # # # line
list c.aat
list c.tic
list c.bnd
&term 9999
display 9999

Go into arcedit and create two separate bus routes (bus-id = 20, bus-id = 10) as shown in fig-2. Notice the start point of each route.
|
Start |
+++++++++++
-------------------+-----------------
|+
|+
|+
|++++++++++ end route number 20
-------------------------------------
|
|
|


|
|
############# end route number 10
----------------#-------------------
#|
#|
#|
Start ##########|
------------------------------------
|
|
|

Each route is comprised of three separate sections. The middle section spans across an entire arc; however, the beginning and ending sections cover a partial arc.

ae
editc c
de arc ids nodes
draw
de all off

Define a route system named BUS. The sections need to be seen as they are drawn as well as the directions of the route. So, the drawing environment needs to be modified.

de arc node section.bus route.bus arrows
setdrawsymbol 11 2
draw
createfeature section.bus
add

A menu with nine options is visible. Concentrate on options 1, 2, and 3. Move the cursor to the graphic's window, and use option 1 to select the arc shown.

|
[1] |
--*------------------------
|
|
---------------------------
|
|

The selected arc now shows up in red. Define the start and end point of the section. Move the cursor somewhere in the middle of this arc and enter option 2. Move the cursor along this arc a little beyond the intersection point (to make sure not to fall short of the end point) and enter option 2 again.

|
[2] |
-------*-------------------
|
|
---------------------------
|
|
|
| [2]
---------------*----------
|
|
--------------------------
|
|

Defining the first section that spans a partial arc is now complete.

The next task is to capture the middle section.

Move the cursor over to this arc and use option 1 to select it. Make this ENTIRE arc into a section. Use option 3.

|
|
-------------------------
|
* [1]
|
-------------------------
|
|
|
|
-----------------------
|
* [3]
|
-----------------------
|
|

The last section covers a partial arc. Once again, use option 1 to select this arc, and use option 2 to designate the start point and to designate the end point.

|
|
-----------------------
|
| [1]
-----------------*-----
|
|
|
|
----------------------
|
[2]|
---------*------------
|
|
|
|
---------------------
|
| [2]
---------------*-----
|
|
Use option 9 to quit. Three sections have been selected.

Use the list command to review the selected set.

draw
list $all

These three sections need to be tied into route number 20. Also, the starting point with the * option needs to be defined.

makeroute 20 *

Place the cursor at the beginning of the first section to establish the start point.

|
|
-------*--------------------------
|
|
|
----------------------------------
|
|

sel all
list $all

The three sections with routeid = 20 already exist, so the original sections that had routeid = 0 assigned to them must be deleted.

Note:
When sections are created with the createfeature section command, all sections are assigned a $routeid value of 0.



The makeroute command makes a copy of the currently selected set of sections and assigns a $routeid value as specified.

This explains why 'select all' returned six records. Now, the records having $routeid = 0 must be deleted.

res $routeid = 0
delete
draw
sel all
list $all
list
list routelink# f-meas t-meas f-pos t-pos bus#

Route #20, which is comprised of three sections has been defined successfully. Proceed to define three more sections for making route #10. The editfeature is still section.bus. So, begin defining sections with the add command.

add

The submenu with nine choices is returned as before. Use options 1, 2, and 3 to define the three sections and press 9 to quit.

|
|
-------------###########-------
#|
#|
#|
-----#########|----------------
|
|
list $all
Notice that the currently selected set consists of the three new sections just added, and they all have $routeid set to 0. These three sections are ready to be strung into route #10.

makeroute 10 *

|
|
---------------------------
|
|
----*----------------------
|
|
Use the cursor to point to the beginning of route #10. Select all the sections.

sel all
list $all

Nine sections are returned. This is normal. There are the three sections with $routeid = 20 from the first route. The program made a copy of the sections and assigned a $routeid = 10. Delete the sections that have $routeid = 0.

res $routeid = 0
delete
sel all
list $all
draw
list routelink# f-meas t-meas f-pos t-pos bus#
ef route.bus
list
sel all
list
res bus-id = 20
draw
drawsel
nsel
list
drawsel
draw
q
y
y
arc>list c.aaat
list c.aat
list c.secbus
list c.ratbus

End of demo 2.

Related Information