• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • runner
  • local-osm-search
OsmDatabase.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2011 Dennis Nienhüser <earthwings@gentoo.org>
9 // Copyright 2013 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
10 //
11 
12 #ifndef MARBLE_OSMDATABASE_H
13 #define MARBLE_OSMDATABASE_H
14 
15 #include "OsmPlacemark.h"
16 
17 #include <QString>
18 #include <QStringList>
19 
20 namespace Marble {
21 
22 class DatabaseQuery;
23 class GeoDataCoordinates;
24 
25 class OsmDatabase
26 {
27 public:
28  explicit OsmDatabase( const QStringList &databaseFiles );
29 
30  // Methods for read access
31 
33  QVector<OsmPlacemark> find( const DatabaseQuery &userQuery );
34 
35 private:
36  static QString wildcardQuery( const QString &term );
37 
38  static void makeUnique( QVector<OsmPlacemark> &placemarks );
39 
40  QStringList m_databaseFiles;
41 
42  static QString formatDistance( const GeoDataCoordinates &a, const GeoDataCoordinates &b );
43 
44  static qreal bearing( const GeoDataCoordinates &a, const GeoDataCoordinates &b );
45 
46  Q_DISABLE_COPY( OsmDatabase )
47 };
48 
49 }
50 
51 #endif // MARBLE_OSMDATABASE_H
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::OsmDatabase::find
QVector< OsmPlacemark > find(const DatabaseQuery &userQuery)
Search the database for matching regions and placemarks.
Definition: OsmDatabase.cpp:79
Marble::OsmDatabase
Definition: OsmDatabase.h:25
OsmPlacemark.h
QString
QStringList
QVector
Marble::OsmDatabase::OsmDatabase
OsmDatabase(const QStringList &databaseFiles)
Definition: OsmDatabase.cpp:74
Marble::DatabaseQuery
Parse result of a user's search term.
Definition: DatabaseQuery.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal