Add Document tag to OSM plugin KML output

(cherry picked from commit 519d35368e2f1e7fe1fce577fe7d71ef9bd5c07e)
master
Philippe Gauthier 2012-08-09 02:23:10 +00:00 committed by Joey Hess
parent 3da366b44b
commit d5b2dfd0e4
1 changed files with 2 additions and 0 deletions

View File

@ -348,6 +348,7 @@ sub writekml($;$) {
DATA_MODE => 1, ENCODING => 'UTF-8');
$writer->xmlDecl();
$writer->startTag("kml", "xmlns" => "http://www.opengis.net/kml/2.2");
$writer->startTag("Document");
# first pass: get the icons
foreach my $name (keys %{$waypoints{$map}}) {
@ -407,6 +408,7 @@ sub writekml($;$) {
$writer->endTag();
}
$writer->endTag();
$writer->endTag();
$writer->end();
writefile("pois.kml", $config{destdir} . "/$map", $output);