Subversion Repositories NaviCtrl

Rev

Rev 24 | Rev 43 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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