English

How To: Dynamic Segmentation demo No. 6

Procedure

This demo shows how to use the CALIBRATEROUTES command. There are four options:

SPLIT, PARTIAL
SPLIT, FULL
NOSPLIT, FULL
NOSPLIT, PARTIAL

The following is a simple line cover thirty units long spanning from 0 to 30.
****************************************
0 30

arc60>cw dynsegdemo6
w dynsegdemo6

generate c
line
1
0,0
30,0
end
end
q
clean c # # # line

Go into arcedit and convert this entire arc into a section. Then convert this section into a route named BUS with a bus-id = 10

&term 9999
display 9999
ae
editc c
de arc ids node section.bus measures route.bus arrows
setdrawsym 11 2
draw
createf section.bus
add Use option-1 to select the arc.
Use option-3 to make the full arc a section.
Use option-9 to quit

makeroute 10 * Enter the left end as the start point of route.
delete
sel all
drawsel
draw
list
save
quit
list c.ratbus
list c.secbus

This route must be calibrated. Note that it begins at 0 and ends at 30.
A point cover named P must be created to set the calibration points. Two points located 10 and 20 units from the left end of our route must be defined. Since the entire route spans from 0 to 30, these calibration points should have values of 10 and 20. Offset the values by one unit; for example make the calibration points 11 and 21 and see how CALIBRATEROUTES handles it.

generate p
point
1,10,0
2,20,0
end
quit
build p point
list p.pat
additem p.pat p.pat bus-id 2 2 i
additem p.pat p.pat measure 3 3 i
list p.pat

Go into tables and make bus-id = 10
p-id = 1 has measure = 11
p-id = 2 has measure = 22

tables
SEL P.PAT
LIST
CALC BUS-ID = 10
RES P-ID = 1
CALC MEASURE = 11
NSEL
CALC MEASURE = 21
SEL P.PAT
LIST
Q STOP

Now enter arcplot. There is a route named bus and a point cover named P with two points.

AP
MAPE TEST.MAP
PAGESIZE 10 6
BOX 0 0 10 6
MAPE C
MAPPOS CEN CEN
SECTIONLINES
SECTIONLINES C BUS 2
MARKERSYM 33
POINTS P
TEXTFONT 94024
TEXTSIZE .5
TEXTPRECISION 0
POINTTEXT P MEASURE you get 11 and 21 on the screen
POINTTEXT
TEXTCOLOR 3
POINTTEXT P P-ID # UL you get the point ids 1 and 2 drawn.
ROUTEHATCH
TEXTSIZE .3
ROUTEHATCH C BUS .1 1 5 2 RIGHT ENDS you get the hatches drawn
from 0 to 30
quit

The route based on the point cover P must be calibrated. The point on the section at measure 10 should be recalibrated to 11 and the point at measure 20 should be recalibrated to 21.

Make four copies of cover C and use the four options:

COPY C C1
COPY C C2
COPY C C3
COPY C C4
LC

CASE #1

calibrateroutes
calibrateroutes c1 bus p bus-id measure .1 split partial
list c1.secbus

The SPLIT option splits the section at the calibration points. There are now three sections.

The PARTIAL option limits the calibration between the calibration points, but leaves the end points alone.

Measure 10 becomes 11, and 20 becomes 21. All points between 10 and 20 gets calibrated, i.e., offset by one.

However the beginning portion (0 to 10) and the ending portion (20 to 30)
do not change.

CASE #2

calibrateroutes
calibrateroutes c2 bus p bus-id measure .1 split full
list c2.secbus

The FULL option calibrates the entire section. The new beginning and end points are extrapolated.

The start point changes from 0 to 1 and the end point changes from 30 to 31.

CASE #3

calibrateroutes
calibrateroutes c3 bus p bus-id measure .1 nosplit full
list c3.secbus

The NOSPLIT option does not split the section. The start point has changed from 0 to 1, while the end point has changed from 30 to 31. There is only one calibrated section.

CASE #4

calibrateroutes c4 bus p bus-id measure .1 nosplit partial
list c4.secbus

This last choice NOSPLIT with PARTIAL does not make any sense. If it is run, the program does nothing to it.

NOSPLIT an only be used with the FULL option.

Review:

ap
map test2.map
pagesize 10 6
box 0 0 10 6
mape c
mappos cen cen
sectionlines
sectionlines c bus 2
markersym 33
points p
textfont 94024
textsize .5
textcolor 3
pointtext p measure
textsize .3
textprecision 0
routehatch c bus .1 1 5 2 right ends
mdelete

This is the original section C that needs to be calibrated:

routehatch c1 bus .1 1 5 2 right ends
mdelete

Notice how positions 10 and 20 now read 11 and 22. But the ends are still at 0 and 30. This is the SPLIT with PARTIAL option.

routehatch c2 bus .1 1 5 2 right ends
mdelete

Now the ends read 1 and 31. This is the SPLIT with FULL option.

routehatch c3 bus .1 1 5 2 right ends
mdelete

This is the NOSPLIT with FULL option. It is still one section. The ends read 1 and 31.

routehatch c4 bus .1 1 5 2 right ends
mdelete

This is the NOSPLIT with PARTIAL option. This option is meaningless, and no change is done.

It may be a lot more clear if the individual sections are viewed in different colors.

&sys arc list c1.secbus

Notice there are three sections. Notice the bus# item. It has values of 1, 2 and 3. Use this item to draw up the sections with three different colors:

sectionhatch
sectionhatch c1 bus .1 1 5 bus# right ends
mdelete

The three sections are distinguishable as they are drawn in different colors.

sectionhatch c2 bus .1 1 5 bus# right ends
mdelete

sectionhatch c3 bus .1 1 5 bus# right ends
mdelete

sectionhatch c4 bus .1 1 5 bus# right ends
end

quit