marble
PbfParser.cpp
Go to the documentation of this file.
217 qCritical() << "invalid block type, found" << m_blobHeader.type().data() << "instead of OSMData";
261 const Node& inputNode = m_primitiveBlock.primitivegroup( m_currentGroup ).nodes( m_currentEntity );
263 node.lat = ( ( double ) inputNode.lat() * m_primitiveBlock.granularity() + m_primitiveBlock.lat_offset() ) / ( 1000.0 * 1000.0 * 1000.0 );
264 node.lon = ( ( double ) inputNode.lon() * m_primitiveBlock.granularity() + m_primitiveBlock.lon_offset() ) / ( 1000.0 * 1000.0 * 1000.0 );
268 QString key = QString::fromUtf8( m_primitiveBlock.stringtable().s( inputNode.keys( tag ) ).data() );
269 QString value = QString::fromUtf8( m_primitiveBlock.stringtable().s( inputNode.vals( tag ) ).data() );
313 const Way& inputWay = m_primitiveBlock.primitivegroup( m_currentGroup ).ways( m_currentEntity );
318 QString key = QString::fromUtf8( m_primitiveBlock.stringtable().s( inputWay.keys( tag ) ).data() );
319 QString value = QString::fromUtf8( m_primitiveBlock.stringtable().s( inputWay.vals( tag ) ).data() );
391 const Relation& inputRelation = m_primitiveBlock.primitivegroup( m_currentGroup ).relations( m_currentEntity );
396 QString key = QString::fromUtf8( m_primitiveBlock.stringtable().s( inputRelation.keys( tag ) ).data() );
397 QString value = QString::fromUtf8( m_primitiveBlock.stringtable().s( inputRelation.vals( tag ) ).data() );
456 node.lat = ( ( double ) m_lastDenseLatitude * m_primitiveBlock.granularity() + m_primitiveBlock.lat_offset() ) / ( 1000.0 * 1000.0 * 1000.0 );
457 node.lon = ( ( double ) m_lastDenseLongitude * m_primitiveBlock.granularity() + m_primitiveBlock.lon_offset() ) / ( 1000.0 * 1000.0 * 1000.0 );
469 QString key = QString::fromUtf8( m_primitiveBlock.stringtable().s( dense.keys_vals( m_lastDenseTag ) ).data() );
470 QString value = QString::fromUtf8( m_primitiveBlock.stringtable().s( dense.keys_vals( m_lastDenseTag + 1 ) ).data() );
void clear()
QHash< int, Coordinate > m_coordinates
Definition: tools/osm-addresses/OsmParser.h:167
void setCategory(Element &element, const QString &key, const QString &value)
Definition: tools/osm-addresses/OsmParser.cpp:622
void push_back(const T &value)
Definition: tools/osm-addresses/OsmParser.h:79
virtual bool parse(const QFileInfo &file, int pass, bool &needAnotherPass)
Definition: PbfParser.cpp:36
GeoDataPoint * node(quint64 id)
Definition: src/plugins/runner/osm/OsmParser.cpp:71
const T & at(int i) const
void setDevice(QIODevice *d)
Definition: tools/osm-addresses/OsmParser.h:41
int readRawData(char *s, int len)
int size() const
QHash< int, Relation > m_relations
Definition: tools/osm-addresses/OsmParser.h:173
void resize(int size)
QString fromUtf8(const char *str, int size)
Definition: tools/osm-addresses/OsmParser.h:40
QList< QPair< int, RelationRole > > ways
Definition: tools/osm-addresses/OsmParser.h:124
QString absoluteFilePath() const
bool isEmpty() const
QString trimmed() const
const char * constData() const
Definition: tools/osm-addresses/OsmParser.h:71
T & first()
bool shouldSave(ElementType type, const QString &key, const QString &value)
Definition: tools/osm-addresses/OsmParser.cpp:555
bool contains(const T &value) const
void setByteOrder(ByteOrder bo)
GeoDataLineString * way(quint64 id)
Definition: src/plugins/runner/osm/OsmParser.cpp:81
T & last()
Definition: tools/osm-addresses/OsmParser.h:42
char * data()
bool isAdministrativeBoundary
Definition: tools/osm-addresses/OsmParser.h:128
void clear()
int size() const
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
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.