1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-28 12:09:15 +02:00

Do not duplicate the area descriptions where (most) maps have POIs

This commit is contained in:
2020-01-22 22:18:29 +01:00
parent ce6d6298bb
commit 465b146001
3 changed files with 9 additions and 10 deletions

View File

@ -990,12 +990,6 @@ bool Style::isMilitaryArea(quint32 type)
return (type == TYPE(0x04));
}
bool Style::isInfrastructureArea(quint32 type)
{
return ((type >= TYPE(0x07) && type <= TYPE(0xc)) || type == TYPE(0x13)
|| type == TYPE(0x1a) || type == TYPE(0x19));
}
bool Style::isSpot(quint32 type)
{
return (type == TYPE(0x62) || type == TYPE(0x63));
@ -1011,6 +1005,11 @@ bool Style::isMajorRoad(quint32 type)
return (type <= TYPE(0x04));
}
bool Style::isWaterAreaPOI(quint32 type)
{
return (type == 0x6603);
}
Style::POIClass Style::poiClass(quint32 type)
{
if ((type >= 0x2a00 && type < 0x2b00) || type == 0x2c0a || type == 0x2d02)

View File

@ -112,7 +112,7 @@ public:
static bool isMajorRoad(quint32 type);
static bool isWaterArea(quint32 type);
static bool isMilitaryArea(quint32 type);
static bool isInfrastructureArea(quint32 type);
static bool isWaterAreaPOI(quint32 type);
static POIClass poiClass(quint32 type);
private: