Skip to content

OSMLoader

#include <osmloader.h>

Inherits from QObject, osmium::handler::Handler, osmium::handler::Handler

Public Slots

Name
void load()

Public Signals

Name
void finished()

Public Functions

Name
OSMLoader(const QString & source, QObject * parent =nullptr)
~OSMLoader()
void way(const osmium::Way & way)
void area(const osmium::Area & area)
OSMLoader(const String & source)
~OSMLoader()
void way(const osmium::Way & way)
void area(const osmium::Area & area)
void load()

Public Attributes

Name
std::unordered_map< osmium::object_id_type, std::unique_ptr< OSMNode > > nodes
std::vector< std::unique_ptr< OSMWay > > ways
std::vector< std::unique_ptr< OSMArea > > areas
QVector2D centerPoint
float scale
glm::vec2 centerPoint

Public Slots Documentation

slot load

1
void load()

Public Signals Documentation

signal finished

1
void finished()

Public Functions Documentation

function OSMLoader

1
2
3
4
explicit OSMLoader(
    const QString & source,
    QObject * parent =nullptr
)

function ~OSMLoader

1
~OSMLoader()

function way

1
2
3
void way(
    const osmium::Way & way
)

function area

1
2
3
void area(
    const osmium::Area & area
)

function OSMLoader

1
2
3
explicit OSMLoader(
    const String & source
)

function ~OSMLoader

1
~OSMLoader()

function way

1
2
3
void way(
    const osmium::Way & way
)

function area

1
2
3
void area(
    const osmium::Area & area
)

function load

1
void load()

Public Attributes Documentation

variable nodes

1
std::unordered_map< osmium::object_id_type, std::unique_ptr< OSMNode > > nodes;

variable ways

1
std::vector< std::unique_ptr< OSMWay > > ways;

variable areas

1
std::vector< std::unique_ptr< OSMArea > > areas;

variable centerPoint

1
QVector2D centerPoint;

variable scale

1
float scale;

variable centerPoint

1
glm::vec2 centerPoint;

Updated on 2023-07-03 at 11:02:07 +0000