Marble

KmlTagWriter.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2009 Andrew Manson <[email protected]>
4 //
5 
6 #include "KmlTagWriter.h"
7 
8 #include "GeoWriter.h"
9 #include "KmlElementDictionary.h"
10 
11 
12 namespace Marble
13 {
14 
15 static GeoTagWriterRegistrar s_writerKml( GeoTagWriter::QualifiedName( "",
16  kml::kmlTag_nameSpaceOgc22),
17  new KmlTagWriter() );
18 
19 
20 bool KmlTagWriter::write( const GeoNode *node, GeoWriter& writer ) const
21 {
22  Q_UNUSED(node);
23 
24  writer.writeDefaultNamespace( kml::kmlTag_nameSpaceOgc22 );
25  writer.writeNamespace( kml::kmlTag_nameSpaceGx22, "gx" );
26  writer.writeStartElement( "kml" );
27 
28  // Do not write an end element for document handlers
29  return true;
30 }
31 
32 }
QPair< QString, QString > QualifiedName
Object Name and Namespace Pair This type is intended to be used in a similar way to.
Definition: GeoTagWriter.h:44
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.