Rev 434 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
426 | killagreg | 1 | //________________________________________________________________________________________________________________________________________ |
2 | // |
||
3 | // Definition of KML header and footer elements for documents, placemarks and linestrings |
||
4 | // |
||
5 | //________________________________________________________________________________________________________________________________________ |
||
6 | const int8_t 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" |
||
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" |
||
19 | }; |
||
20 | |||
21 | //________________________________________________________________________________________________________________________________________ |
||
22 | // |
||
23 | // footer of an KML- file. |
||
24 | // |
||
25 | //________________________________________________________________________________________________________________________________________ |
||
26 | const int8_t KML_DOCUMENT_FOOTER[] = |
||
27 | { |
||
28 | "</Document>\r\n" |
||
29 | "</kml>\r\n" |
||
30 | }; |
||
31 | |||
32 | //________________________________________________________________________________________________________________________________________ |
||
33 | // |
||
34 | // Header of an placemark |
||
35 | // |
||
36 | //________________________________________________________________________________________________________________________________________ |
||
37 | const int8_t KML_PLACEMARK_HEADER[] = |
||
38 | { |
||
39 | "<Placemark>\r\n" |
||
40 | "<name>Flight</name>\r\n" |
||
41 | "<styleUrl>#MK_gps-style</styleUrl>\r\n" |
||
42 | }; |
||
43 | |||
44 | //________________________________________________________________________________________________________________________________________ |
||
45 | // |
||
46 | // Footer of an placemark |
||
47 | // |
||
48 | //________________________________________________________________________________________________________________________________________ |
||
49 | const int8_t KML_PLACEMARK_FOOTER[] = |
||
50 | { |
||
51 | "</Placemark>\r\n" |
||
52 | }; |
||
53 | |||
54 | |||
55 | //________________________________________________________________________________________________________________________________________ |
||
56 | // |
||
57 | // Header of an linestring |
||
58 | // |
||
59 | //________________________________________________________________________________________________________________________________________ |
||
60 | const int8_t KML_LINESTRING_HEADER[] = |
||
61 | { |
||
62 | "<LineString>\r\n" |
||
63 | "<tessellate>1</tessellate>\r\n" |
||
64 | "<altitudeMode>relativeToGround</altitudeMode>\r\n" // also possible "absolute" |
||
65 | "<coordinates>\r\n" |
||
66 | }; |
||
67 | |||
68 | //________________________________________________________________________________________________________________________________________ |
||
69 | // |
||
70 | // Footer of an linestring |
||
71 | // |
||
72 | //________________________________________________________________________________________________________________________________________ |
||
73 | const int8_t KML_LINESTRING_FOOTER[] = |
||
74 | { |
||
75 | "\r\n</coordinates>" |
||
76 | "\r\n</LineString>\r\n" |
||
77 | }; |
||
78 |