Subversion Repositories NaviCtrl

Rev

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

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