Subversion Repositories NaviCtrl

Rev

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

Rev 85 Rev 434
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_HEADER[] =
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 GPS logging</name>\r\n"
12
"\r\n"
12
"\r\n"
13
"<Style id=\"MK_gps-style\">\r\n"
13
"<Style id=\"MK_gps-style\">\r\n"
14
"<LineStyle>\r\n"
14
"<LineStyle>\r\n"
15
"<color>ff0000ff</color>\r\n"
15
"<color>ff0000ff</color>\r\n"
16
"<width>2</width>\r\n"
16
"<width>2</width>\r\n"
17
"</LineStyle>\r\n"
17
"</LineStyle>\r\n"
18
"</Style>\r\n"
18
"</Style>\r\n"
19
};
19
};
20
 
20
 
21
//________________________________________________________________________________________________________________________________________
21
//________________________________________________________________________________________________________________________________________
22
// 
22
// 
23
// footer of an KML- file.
23
// footer of an KML- file.
24
//                              
24
//                              
25
//________________________________________________________________________________________________________________________________________
25
//________________________________________________________________________________________________________________________________________
26
const s8 KML_DOCUMENT_FOOTER[] =
26
const s8 KML_DOCUMENT_FOOTER[] =
27
{
27
{
28
"</Document>\r\n"
28
"</Document>\r\n"
29
"</kml>\r\n"
29
"</kml>\r\n"
30
};
30
};
31
 
31
 
32
//________________________________________________________________________________________________________________________________________
32
//________________________________________________________________________________________________________________________________________
33
// 
33
// 
34
// Header of an placemark
34
// Header of an placemark
35
//                              
35
//                              
36
//________________________________________________________________________________________________________________________________________
36
//________________________________________________________________________________________________________________________________________
37
const s8 KML_PLACEMARK_HEADER[] =
37
const s8 KML_PLACEMARK_HEADER[] =
38
{
38
{
39
"<Placemark>\r\n"
39
"<Placemark>\r\n"
40
"<name>Flight</name>\r\n"
40
"<name>Flight</name>\r\n"
41
"<styleUrl>#MK_gps-style</styleUrl>\r\n"
41
"<styleUrl>#MK_gps-style</styleUrl>\r\n"
42
};
42
};
43
 
43
 
44
//________________________________________________________________________________________________________________________________________
44
//________________________________________________________________________________________________________________________________________
45
// 
45
// 
46
// Footer of an placemark
46
// Footer of an placemark
47
//                              
47
//                              
48
//________________________________________________________________________________________________________________________________________
48
//________________________________________________________________________________________________________________________________________
49
const s8 KML_PLACEMARK_FOOTER[] =
49
const s8 KML_PLACEMARK_FOOTER[] =
50
{
50
{
51
"</Placemark>\r\n"
51
"</Placemark>\r\n"
52
};
52
};
53
 
53
 
54
 
54
 
55
//________________________________________________________________________________________________________________________________________
55
//________________________________________________________________________________________________________________________________________
56
// 
56
// 
57
// Header of an linestring
57
// Header of an linestring
58
//                              
58
//                              
59
//________________________________________________________________________________________________________________________________________
59
//________________________________________________________________________________________________________________________________________
60
const s8 KML_LINESTRING_HEADER[] =
60
const s8 KML_LINESTRING_HEADER[] =
61
{
61
{
62
"<LineString>\r\n"
62
"<LineString>\r\n"
63
"<tessellate>1</tessellate>\r\n"
63
"<tessellate>1</tessellate>\r\n"
64
"<altitudeMode>relativeToGround</altitudeMode>\r\n"  // also possible "absolute"
64
"<altitudeMode>relativeToGround</altitudeMode>\r\n"  // also possible "absolute"
65
"<coordinates>\r\n"
65
"<coordinates>"
66
};
66
};
67
 
67
 
68
//________________________________________________________________________________________________________________________________________
68
//________________________________________________________________________________________________________________________________________
69
// 
69
// 
70
// Footer of an linestring
70
// Footer of an linestring
71
//                              
71
//                              
72
//________________________________________________________________________________________________________________________________________
72
//________________________________________________________________________________________________________________________________________
73
const s8 KML_LINESTRING_FOOTER[] =
73
const s8 KML_LINESTRING_FOOTER[] =
74
{
74
{
75
"\r\n</coordinates>"
75
"\r\n</coordinates>"
76
"\r\n</LineString>\r\n"
76
"\r\n</LineString>\r\n"
77
};
77
};
78
 
78
 
79
 
79