Rev 85 | Rev 516 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
24 | StephanB | 1 | //________________________________________________________________________________________________________________________________________ |
2 | // |
||
3 | // Definition of KML header and footer elements for documents, placemarks and linestrings |
||
4 | // |
||
5 | //________________________________________________________________________________________________________________________________________ |
||
6 | const s8 KML_DOCUMENT_HEADER[] = |
||
7 | { |
||
8 | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" |
||
9 | "<kml xmlns=\"http://earth.google.com/kml/2.2\">\r\n" |
||
10 | "<Document>\r\n" |
||
41 | ingob | 11 | "<name>Mikrokopter GPS logging</name>\r\n" |
12 | "\r\n" |
||
13 | "<Style id=\"MK_gps-style\">\r\n" |
||
14 | "<LineStyle>\r\n" |
||
15 | "<color>ff0000ff</color>\r\n" |
||
16 | "<width>2</width>\r\n" |
||
17 | "</LineStyle>\r\n" |
||
18 | "</Style>\r\n" |
||
24 | StephanB | 19 | }; |
20 | |||
21 | //________________________________________________________________________________________________________________________________________ |
||
22 | // |
||
23 | // footer of an KML- file. |
||
24 | // |
||
25 | //________________________________________________________________________________________________________________________________________ |
||
26 | const s8 KML_DOCUMENT_FOOTER[] = |
||
27 | { |
||
41 | ingob | 28 | "</Document>\r\n" |
24 | StephanB | 29 | "</kml>\r\n" |
30 | }; |
||
31 | |||
32 | //________________________________________________________________________________________________________________________________________ |
||
33 | // |
||
34 | // Header of an placemark |
||
35 | // |
||
36 | //________________________________________________________________________________________________________________________________________ |
||
37 | const s8 KML_PLACEMARK_HEADER[] = |
||
41 | ingob | 38 | { |
39 | "<Placemark>\r\n" |
||
40 | "<name>Flight</name>\r\n" |
||
41 | "<styleUrl>#MK_gps-style</styleUrl>\r\n" |
||
42 | }; |
||
24 | StephanB | 43 | |
44 | //________________________________________________________________________________________________________________________________________ |
||
45 | // |
||
46 | // Footer of an placemark |
||
47 | // |
||
48 | //________________________________________________________________________________________________________________________________________ |
||
41 | ingob | 49 | const s8 KML_PLACEMARK_FOOTER[] = |
50 | { |
||
51 | "</Placemark>\r\n" |
||
52 | }; |
||
24 | StephanB | 53 | |
54 | |||
55 | //________________________________________________________________________________________________________________________________________ |
||
56 | // |
||
85 | killagreg | 57 | // Header of an linestring |
24 | StephanB | 58 | // |
59 | //________________________________________________________________________________________________________________________________________ |
||
41 | ingob | 60 | const s8 KML_LINESTRING_HEADER[] = |
61 | { |
||
62 | "<LineString>\r\n" |
||
63 | "<tessellate>1</tessellate>\r\n" |
||
64 | "<altitudeMode>relativeToGround</altitudeMode>\r\n" // also possible "absolute" |
||
434 | holgerb | 65 | "<coordinates>" |
24 | StephanB | 66 | }; |
67 | |||
68 | //________________________________________________________________________________________________________________________________________ |
||
69 | // |
||
70 | // Footer of an linestring |
||
71 | // |
||
72 | //________________________________________________________________________________________________________________________________________ |
||
41 | ingob | 73 | const s8 KML_LINESTRING_FOOTER[] = |
74 | { |
||
75 | "\r\n</coordinates>" |
||
76 | "\r\n</LineString>\r\n" |
||
24 | StephanB | 77 | }; |
78 |