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