~ubuntu-branches/ubuntu/wily/marble/wily-proposed

« back to all changes in this revision

Viewing changes to src/lib/marble/geodata/writers/kml/KmlLatLonAltBoxWriter.cpp

  • Committer: Package Import Robot
  • Author(s): Scarlett Clark, Jonathan Riddell, Scarlett Clark
  • Date: 2014-07-24 23:38:32 UTC
  • mfrom: (1.5.2)
  • Revision ID: package-import@ubuntu.com-20140724233832-7v4421t4khrhw487
Tags: 4:4.13.90-0ubuntu1
[ Jonathan Riddell ]
* Switch to libmarblewidget19 for new soversion

[ Scarlett Clark ]
* New upstream beta release
* Update: do_not_install_private_headers. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include "GeoTagWriter.h"
17
17
#include "KmlGroundOverlayWriter.h"
18
18
#include "KmlElementDictionary.h"
 
19
#include "KmlObjectTagWriter.h"
19
20
 
20
21
namespace Marble
21
22
{
22
23
 
 
24
static GeoTagWriterRegistrar s_writerLatLonAltBox(
 
25
    GeoTagWriter::QualifiedName( GeoDataTypes::GeoDataLatLonAltBoxType,
 
26
                                 kml::kmlTag_nameSpaceOgc22 ),
 
27
    new KmlLatLonAltBoxWriter);
 
28
 
23
29
bool KmlLatLonAltBoxWriter::write( const GeoNode *node,
24
30
                                 GeoWriter& writer ) const
25
31
{
26
32
    const GeoDataLatLonAltBox *latLonAltBox = static_cast<const GeoDataLatLonAltBox*>( node );
27
33
    writer.writeStartElement(kml::kmlTag_LatLonAltBox);
 
34
    KmlObjectTagWriter::writeIdentifiers( writer, latLonAltBox );
28
35
    writer.writeTextElement( kml::kmlTag_north, QString::number(latLonAltBox->north( GeoDataCoordinates::Degree )) );
29
36
    writer.writeTextElement( kml::kmlTag_south, QString::number(latLonAltBox->south( GeoDataCoordinates::Degree )) );
30
37
    writer.writeTextElement( kml::kmlTag_east,  QString::number(latLonAltBox->east( GeoDataCoordinates::Degree )) );