forked from upstream-mirrors/OpenTracks
@@ -226,15 +226,19 @@ public class KMLTrackExporter implements TrackExporter {
|
|||||||
|
|
||||||
private void writeHeader(Track[] tracks) {
|
private void writeHeader(Track[] tracks) {
|
||||||
if (printWriter != null) {
|
if (printWriter != null) {
|
||||||
printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
|
printWriter.println(
|
||||||
printWriter.println("<kml xmlns=\"http://www.opengis.net/kml/2.3\"");
|
"""
|
||||||
printWriter.println("xmlns:atom=\"http://www.w3.org/2005/Atom\"");
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
printWriter.println("xmlns:opentracks=\"http://opentracksapp.com/xmlschemas/v1\">");
|
""");
|
||||||
//TODO ADD xsi:schemaLocation for atom
|
printWriter.println(
|
||||||
printWriter.println("xsi:schemaLocation=" +
|
"""
|
||||||
"\"http://www.opengis.net/kml/2.3 http://schemas.opengis.net/kml/2.3/ogckml23.xsd"
|
<kml xmlns="http://www.opengis.net/kml/2.3"
|
||||||
+ " http://opentracksapp.com/xmlschemas/v1 http://opentracksapp.com/xmlschemas/OpenTracks_v1.xsd\">");
|
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||||
|
xmlns:opentracks="http://opentracksapp.com/xmlschemas/v1"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.opengis.net/kml/2.3 http://schemas.opengis.net/kml/2.3/ogckml23.xsd
|
||||||
|
http://opentracksapp.com/xmlschemas/v1 http://opentracksapp.com/xmlschemas/OpenTracks_v1.xsd">
|
||||||
|
"""); //TODO ADD xsi:schemaLocation for atom
|
||||||
printWriter.println("<Document>");
|
printWriter.println("<Document>");
|
||||||
printWriter.println("<open>1</open>");
|
printWriter.println("<open>1</open>");
|
||||||
printWriter.println("<visibility>1</visibility>");
|
printWriter.println("<visibility>1</visibility>");
|
||||||
|
|||||||
Reference in New Issue
Block a user