Part 3: Extracting Start and End Coordinates
Now, let's extract only the coordinate numbers. Insert a new rule called “Filter data from other rules based on a pattern.”. Change the rule to say the following:
Filtered data from Coordinate Lines matching integer numbers.
Name this rule something like All Coordinates. It should look like the following:
Now that we have the coordinate numbers only, let's seperate out the start coordinates and end coordinates. These occur every other number as in start-end-start-end-start end.
Insert a new rule called “Pick some data from other rules.” Change the rule to say the following:
Picked data from All Coordinates starting from item 0 and every 2 nd item from each block.
Name this rule something like Start Coordinates.It should look like the following:

Click to view a larger image
Similarly for end coordinates, insert a new rule called “Pick some data from other Rules” and change the rule to say the following:
Picked data from All Coordinates starting from item 1 and every 2 nd item from each block.
Name this rule something like End Coordinates.It should look like the following:

Click to view a larger image

|