]> git.street.me.uk Git - andy/viking.git/blame - doc/dev/FF2
Update mtime of up-to-date tiles
[andy/viking.git] / doc / dev / FF2
CommitLineData
50a14534
EB
1If I use the GPSPoint code, I can concatenate gpspoint files and make them into layers just with a text editor.
2Also, any new features I just add to that.
3However, be mindful that GPSPoint looks for EOF.
4I could modify the code to stop on a line that begins with "-"
5
6Style 1: Use GPSPoint code
7
8type="layer" id="aggregate" name="My \"Name\""
9type="layer" id="trackwaypoint" name="cool"
10type="waypoint" ...
11...
12type="layerend"
13type="layerend"
14
15Style 2: GPSPoint++
16
17+Layer Aggregate
18=This Is A "Name" with "Quotes" and WEIRD *(#$% chars
19
20+Layer TrackWaypoint
21=My CoolLayer
22
23type="waypoint" ..
24type="track"
25
26-EndLayer
27
28-EndLayer
29
30comments (#) ignored
31each layer parser must return control if line begins with '-'
32However, this is to freestyle.
33
34Style 3: GPSPoint to the next Level
35
36+Layer Aggregate
37=This Is A "Name"
38
39+Layer Coord
40=My Cool Chord Liar
41
42type="param" name="deg_inc" value="5"
43
44-EndLayer
45
46-EndLayer
47
48I'm a bit foggy on the parsing, does each layer do that? 'cause TRWLayer will have to.
49also, if we do that, we may as well use #1 with \\'d quotes as it is more standardized.
50
51Style #4: Happy-Medium
52
53+Layer Aggregate
54name=This Is A "Name" with funny =-10!@$#* chars
55
56+Layer TRW
57name=My Cool Layer
58
59draw_tracks=1
60draw_waypoints=0
61data_format=gpspoint
62
63+LayerData # parsed by Layer itself
64
65type="waypoint" ...
66
67-LayerData
68
69-Layer
70
71+Layer Coord
72name=My Cool Chord Liar
73
74deg_inc=5
75
76-Layer
77
78-Layer
79
80Every thing is done by the file parser, EXCEPT LayerData blocks.
81Everything else is done by some sort of settable resources.
82Layertypes would have to list resources and types.
83Unknown resource are simply skipped.
84Unknown Layers are simply skipped until the next '-Layer', include their LayerData blocks if they have one.
85
86comments?
87
88Issues:
89
90#1
91One start character would be nice, like
92!startlayer
93!endlayer
94
95etc.
96
97all i can think of for now.
98
99Style 5: Win Conf Style
100
101[Layer Type=Aggregate]
102name=Hello World
103
104[Layer Type=TRW]
105name=My Cool Layer
106draw_tracks=1
107draw_waypoints=0
108data_format=gpspoint
109[LayerData]
110type=waypoint ...
111[EndLayerData]
112[EndLayer]
113
114[Layer Type=Coord]
115name=Chord Liar
116deg_inc=2
117[EndLayer]
118
119[EndLayer]