From 71bbd868e24f1630d730b0088707cefdfc0fe14d Mon Sep 17 00:00:00 2001 From: jensMF Date: Thu, 7 Jan 2021 22:38:59 +0100 Subject: [PATCH] added 'osmand' namespace to header and extensions in gpx files --- OsmAnd-java/src/main/java/net/osmand/GPXUtilities.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/GPXUtilities.java b/OsmAnd-java/src/main/java/net/osmand/GPXUtilities.java index b2cef88e80..bee9fa2b19 100644 --- a/OsmAnd-java/src/main/java/net/osmand/GPXUtilities.java +++ b/OsmAnd-java/src/main/java/net/osmand/GPXUtilities.java @@ -1790,6 +1790,7 @@ public class GPXUtilities { serializer.attribute(null, "creator", file.author); //$NON-NLS-1$ } serializer.attribute(null, "xmlns", "http://www.topografix.com/GPX/1/1"); //$NON-NLS-1$ //$NON-NLS-2$ + serializer.attribute(null, "xmlns:osmand", "https://osmand.net"); serializer.attribute(null, "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); serializer.attribute(null, "xsi:schemaLocation", "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"); @@ -1938,7 +1939,7 @@ public class GPXUtilities { serializer.startTag(null, "extensions"); if (!extensions.isEmpty()) { for (Entry s : extensions.entrySet()) { - writeNotNullText(serializer, s.getKey(), s.getValue()); + writeNotNullText(serializer,"osmand:" + s.getKey(), s.getValue()); } } if (extensionsWriter != null) {