1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Extend obstruction info

This commit is contained in:
Martin Tůma 2022-04-03 21:20:21 +02:00
parent 681de81b1c
commit 2234245e81
2 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ bool RGNFile::readClassFields(Handle &hdl, SegmentType segmentType,
point->label = QString::number(d2m(depth, units)); point->label = QString::number(d2m(depth, units));
} }
if (point && Style::isIsolatedDangerPoint(point->type) && rs) { if (point && Style::isObstructionPoint(point->type) && rs) {
quint32 val, rb = rs; quint32 val, rb = rs;
quint32 units = (flags >> 3) & 3; quint32 units = (flags >> 3) & 3;

View File

@ -121,8 +121,8 @@ public:
{return (type == 0x10613);} {return (type == 0x10613);}
static bool isDepthPoint(quint32 type) static bool isDepthPoint(quint32 type)
{return (type == 0x10301);} {return (type == 0x10301);}
static bool isIsolatedDangerPoint(quint32 type) static bool isObstructionPoint(quint32 type)
{return (type == 0x10400);} {return (type >= 0x10400 && type <= 0x10401);}
static bool isMarinePoint(quint32 type) static bool isMarinePoint(quint32 type)
{return type >= 0x10100 && type < 0x10a00;} {return type >= 0x10100 && type < 0x10a00;}