Debian Codegraph @

xmldoc/filters/arc.xml

raw
1 <para>
2 This filter keeps or removes waypoints based on their proximity to an arc,
3 which is a series of connected line segments similar to a route or a track
4 but without any associated data other than the coordinates. Optionally, it
5 can move each non-deleted waypoint over the closest segment of the arc.
6 </para>
7
8 <para>
9 The arc may defined in a file whose name must be provided with the
10 <option>file</option>, or the tracks or routes that have already been read. That file contains pairs of coordinates for the
11 vertices of the arc, one coordinate pair per line. Comments may be
12 included by preceding them with a '#' character. An arc file looks
13 something like this sample:
14 </para>
15
16 <screen>
17 # Lima Road/SR3 north of Fort Wayne, Indiana
18 41.150064468 -85.166207433
19 41.150064468 -85.165371895
20 41.149034500 -85.165157318
21 41.147832870 -85.164771080
22 41.146631241 -85.164384842
23 41.144270897 -85.163655281
24 41.141953468 -85.162882805
25 </screen>
26
27 <para>
28 An arc file may optionally contain gaps in the arc. You may specify
29 such a gap by inserting a line containing "#break" either on a line by
30 itself or after the coordinates of the starting point of the new arc segment.
31 </para>
32
33 <example xml:id="example_arc_filter">
34 <title>Using the arc filter</title>
35 <para>
36 Assuming the arc above is in a file called
37 <filename>lima_rd.txt</filename>, the following command line
38 would include only points within one mile of the section of Lima Road
39 covered by the arc. The output is reordered by distance to the arc,
40 closest points first.
41
42 </para>
43 <para><userinput>gpsbabel -i geo -f 1.loc -x arc,file=lima_rd.txt,distance=1 -o mapsend -F 2.wpt</userinput></para>
44 </example>