mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-12 22:30:47 +01:00
Handle multi key attributes
This commit is contained in:
parent
e0000d7299
commit
ac41483530
@ -329,7 +329,9 @@ MapData::Point::Point(uint type, const Coordinates &c, const Attributes &attr,
|
||||
else if (type == I_DISMAR)
|
||||
subtype = CATDIS;
|
||||
|
||||
_type = SUBTYPE(type, _attr.value(subtype).toUInt());
|
||||
QList<QByteArray> list(_attr.value(subtype).split(','));
|
||||
std::sort(list.begin(), list.end());
|
||||
_type = SUBTYPE(type, list.first().toUInt());
|
||||
_id = ((quint64)order(_type))<<32 | (uint)qHash(c);
|
||||
_label = QString::fromLatin1(_attr.value(OBJNAM));
|
||||
|
||||
|
@ -282,6 +282,7 @@ void RasterTile::processPoints(QList<MapData::Point> &points,
|
||||
attr.value(LITVIS).toUInt(), range,
|
||||
attr.value(SECTR1).toDouble(), attr.value(SECTR2).toDouble()));
|
||||
slMap.insert(point.pos());
|
||||
qDebug() << attr;
|
||||
} else
|
||||
lightsMap.insert(point.pos(), color);
|
||||
} else if (point.type()>>16 == FOGSIG)
|
||||
|
Loading…
x
Reference in New Issue
Block a user