Add Document tag to OSM plugin KML output
(cherry picked from commit 519d35368e2f1e7fe1fce577fe7d71ef9bd5c07e)master
parent
3da366b44b
commit
d5b2dfd0e4
|
@ -348,6 +348,7 @@ sub writekml($;$) {
|
||||||
DATA_MODE => 1, ENCODING => 'UTF-8');
|
DATA_MODE => 1, ENCODING => 'UTF-8');
|
||||||
$writer->xmlDecl();
|
$writer->xmlDecl();
|
||||||
$writer->startTag("kml", "xmlns" => "http://www.opengis.net/kml/2.2");
|
$writer->startTag("kml", "xmlns" => "http://www.opengis.net/kml/2.2");
|
||||||
|
$writer->startTag("Document");
|
||||||
|
|
||||||
# first pass: get the icons
|
# first pass: get the icons
|
||||||
foreach my $name (keys %{$waypoints{$map}}) {
|
foreach my $name (keys %{$waypoints{$map}}) {
|
||||||
|
@ -407,6 +408,7 @@ sub writekml($;$) {
|
||||||
$writer->endTag();
|
$writer->endTag();
|
||||||
}
|
}
|
||||||
$writer->endTag();
|
$writer->endTag();
|
||||||
|
$writer->endTag();
|
||||||
$writer->end();
|
$writer->end();
|
||||||
|
|
||||||
writefile("pois.kml", $config{destdir} . "/$map", $output);
|
writefile("pois.kml", $config{destdir} . "/$map", $output);
|
||||||
|
|
Loading…
Reference in New Issue