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