1
#ifndef MERKATOR_IMPORTOSM_H_
2
#define MERKATOR_IMPORTOSM_H_
14
#include <QXmlDefaultHandler>
16
class OSMHandler : public QXmlDefaultHandler
19
OSMHandler(MapDocument* aDoc, MapLayer* aLayer, MapLayer* aConflict);
21
virtual bool startElement ( const QString & namespaceURI, const QString & localName, const QString & qName, const QXmlAttributes & atts );
22
virtual bool endElement ( const QString & namespaceURI, const QString & localName, const QString & qName );
25
void parseNode(const QXmlAttributes & atts);
26
void parseTag(const QXmlAttributes & atts);
27
void parseWay(const QXmlAttributes & atts);
28
void parseNd(const QXmlAttributes & atts);
29
void parseMember(const QXmlAttributes & atts);
30
void parseRelation(const QXmlAttributes& atts);
32
MapDocument* theDocument;
34
MapLayer* conflictLayer;
39
bool importOSM(QWidget* aParent, const QString& aFilename, MapDocument* theDocument, MapLayer* theLayer);
40
bool importOSM(QWidget* aParent, QByteArray& Content, MapDocument* theDocument, MapLayer* theLayer, Downloader* theDownloader);