Rev 41 | Go to most recent revision | Details | 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 | |||
7 | |||
8 | const s8 KML_DOCUMENT_HEADER[] = |
||
9 | { |
||
10 | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" |
||
11 | "<kml xmlns=\"http://earth.google.com/kml/2.2\">\r\n" |
||
12 | "<Document>\r\n" |
||
13 | " <name>Mikrokopter GPS logging</name>\r\n" |
||
14 | " <StyleMap id=\"msn_ylw-pushpin\">\r\n" |
||
15 | " <Pair>\r\n" |
||
16 | " <key>normal</key>\r\n" |
||
17 | " <styleUrl>#sn_ylw-pushpin</styleUrl>\r\n" |
||
18 | " </Pair>\r\n" |
||
19 | " <Pair>\r\n" |
||
20 | " <key>highlight</key>\r\n" |
||
21 | " <styleUrl>#sh_ylw-pushpin</styleUrl>\r\n" |
||
22 | " </Pair>\r\n" |
||
23 | " </StyleMap>\r\n" |
||
24 | " <Style id=\"sn_ylw-pushpin\">\r\n" |
||
25 | " <IconStyle>\r\n" |
||
26 | " <scale>1.1</scale>\r\n" |
||
27 | " <Icon>\r\n" |
||
28 | " <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>\r\n" |
||
29 | " </Icon>\r\n" |
||
30 | " <hotSpot x=\"20\" y=\"2\" xunits=\"pixels\" yunits=\"pixels\"/>\r\n" |
||
31 | " </IconStyle>\r\n" |
||
32 | " </Style>\r\n" |
||
33 | " <Style id=\"sh_ylw-pushpin\">\r\n" |
||
34 | " <IconStyle>\r\n" |
||
35 | " <scale>1.3</scale>\r\n" |
||
36 | " <Icon>\r\n" |
||
37 | " <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>\r\n" |
||
38 | " </Icon>\r\n" |
||
39 | " <hotSpot x=\"20\" y=\"2\" xunits=\"pixels\" yunits=\"pixels\"/>\r\n" |
||
40 | " </IconStyle>\r\n" |
||
41 | " </Style>\r\n" |
||
42 | }; |
||
43 | |||
44 | |||
45 | |||
46 | |||
47 | //________________________________________________________________________________________________________________________________________ |
||
48 | // |
||
49 | // footer of an KML- file. |
||
50 | // |
||
51 | //________________________________________________________________________________________________________________________________________ |
||
52 | |||
53 | |||
54 | const s8 KML_DOCUMENT_FOOTER[] = |
||
55 | { |
||
56 | " </Document>\r\n" |
||
57 | "</kml>\r\n" |
||
58 | }; |
||
59 | |||
60 | |||
61 | |||
62 | //________________________________________________________________________________________________________________________________________ |
||
63 | // |
||
64 | // Header of an placemark |
||
65 | // |
||
66 | //________________________________________________________________________________________________________________________________________ |
||
67 | |||
68 | const s8 KML_PLACEMARK_HEADER[] = |
||
69 | {" <Placemark>\r\n" |
||
70 | " <name>flight</name>\r\n" |
||
71 | " <styleUrl>#msn_ylw-pushpin</styleUrl>\r\n"}; |
||
72 | |||
73 | //________________________________________________________________________________________________________________________________________ |
||
74 | // |
||
75 | // Footer of an placemark |
||
76 | // |
||
77 | //________________________________________________________________________________________________________________________________________ |
||
78 | |||
79 | const s8 KML_PLACEMARK_FOOTER[] = { |
||
80 | " </Placemark>\r\n"}; |
||
81 | |||
82 | |||
83 | //________________________________________________________________________________________________________________________________________ |
||
84 | // |
||
85 | // Footer of an placemark |
||
86 | // |
||
87 | //________________________________________________________________________________________________________________________________________ |
||
88 | |||
89 | const s8 KML_LINESTRING_HEADER[] = { |
||
90 | " <LineString>\r\n" |
||
91 | " <extrude>1</extrude>\r\n" |
||
92 | " <tessellate>1</tessellate>\r\n" |
||
93 | " <altitudeMode>relativeToGround</altitudeMode>\r\n" |
||
94 | " <coordinates>\r\n" |
||
95 | }; |
||
96 | |||
97 | //________________________________________________________________________________________________________________________________________ |
||
98 | // |
||
99 | // Footer of an linestring |
||
100 | // |
||
101 | //________________________________________________________________________________________________________________________________________ |
||
102 | |||
103 | const s8 KML_LINESTRING_FOOTER[] = { |
||
104 | "\r\n </coordinates>" |
||
105 | "\r\n </LineString>\r\n" |
||
106 | }; |
||
107 |