Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1704 - 1
// all constant strings are within the flash to save space in the sram
2
#include <avr/pgmspace.h>
3
 
4
//________________________________________________________________________________________________________________________________________
5
//
6
// Definition of KML header and footer elements for documents, placemarks and linestrings
7
//
8
//________________________________________________________________________________________________________________________________________
9
const prog_char KML_DOCUMENT_HEADER[] =
10
{
11
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
12
"<kml xmlns=\"http://earth.google.com/kml/2.2\">\r\n"
13
"<Document>\r\n"
14
"<name>Mikrokopter GPS logging</name>\r\n"
15
"\r\n"
16
"<Style id=\"FM_gps-style\">\r\n"
17
"<LineStyle>\r\n"
18
"<color>ff00ff00</color>\r\n"
19
"<width>2</width>\r\n"
20
"</LineStyle>\r\n"
21
"</Style>\r\n"
22
};
23
 
24
//________________________________________________________________________________________________________________________________________
25
//
26
// footer of an KML- file.
27
//
28
//________________________________________________________________________________________________________________________________________
29
const prog_char KML_DOCUMENT_FOOTER[] =
30
{
31
"</Document>\r\n"
32
"</kml>\r\n"
33
};
34
 
35
//________________________________________________________________________________________________________________________________________
36
//
37
// Header of an placemark
38
//
39
//________________________________________________________________________________________________________________________________________
40
const prog_char KML_PLACEMARK_HEADER[] =
41
{
42
"<Placemark>\r\n"
43
"<name>FollowMe</name>\r\n"
44
"<styleUrl>#FM_gps-style</styleUrl>\r\n"
45
};
46
 
47
//________________________________________________________________________________________________________________________________________
48
//
49
// Footer of an placemark
50
//
51
//________________________________________________________________________________________________________________________________________
52
const prog_char KML_PLACEMARK_FOOTER[] =
53
{
54
"</Placemark>\r\n"
55
};
56
 
57
 
58
//________________________________________________________________________________________________________________________________________
59
//
60
// Header of an linestring
61
//
62
//________________________________________________________________________________________________________________________________________
63
const prog_char KML_LINESTRING_HEADER[] =
64
{
65
"<LineString>\r\n"
66
"<tessellate>1</tessellate>\r\n"
67
"<altitudeMode>relativeToGround</altitudeMode>\r\n"  // also possible "absolute"
68
"<coordinates>\r\n"
69
};
70
 
71
//________________________________________________________________________________________________________________________________________
72
//
73
// Footer of an linestring
74
//
75
//________________________________________________________________________________________________________________________________________
76
const prog_char KML_LINESTRING_FOOTER[] =
77
{
78
"\r\n</coordinates>"
79
"\r\n</LineString>\r\n"
80
};
81