1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-31 09:05:14 +01:00

Added missing red light camera entry points

This commit is contained in:
Martin Tůma 2019-11-14 22:55:06 +01:00
parent cdf3a48516
commit 475eb6185a

View File

@ -451,7 +451,7 @@ static quint32 readCamera(QDataStream &stream, QVector<Waypoint> &waypoints,
{ {
RecordHeader rh; RecordHeader rh;
quint8 flags, type, s7, rs; quint8 flags, type, s7, rs;
qint32 top, right, bottom, left; qint32 top, right, bottom, left, lat, lon;
quint32 ds = 15; quint32 ds = 15;
@ -460,19 +460,27 @@ static quint32 readCamera(QDataStream &stream, QVector<Waypoint> &waypoints,
right = readInt24(stream); right = readInt24(stream);
bottom = readInt24(stream); bottom = readInt24(stream);
left = readInt24(stream); left = readInt24(stream);
stream >> flags >> type >> s7; stream >> flags >> type >> s7;
if (s7) { if (s7) {
quint32 skip = s7 + 2 + s7/4; quint32 skip = s7 + 2 + s7/4;
stream.skipRawData(skip); stream.skipRawData(skip);
qint32 lat = readInt24(stream); lat = readInt24(stream);
qint32 lon = readInt24(stream); lon = readInt24(stream);
ds += skip + 6; ds += skip + 6;
} else {
waypoints.append(Coordinates(toWGS24(lon), toWGS24(lat))); quint8 s8;
stream.skipRawData(9);
stream >> s8;
quint32 skip = 3 + s8 + s8/4;
stream.skipRawData(skip);
lat = readInt24(stream);
lon = readInt24(stream);
ds += skip + 16;
} }
waypoints.append(Coordinates(toWGS24(lon), toWGS24(lat)));
Area area; Area area;
Polygon polygon; Polygon polygon;
QVector<Coordinates> v(4); QVector<Coordinates> v(4);