mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-12-05 00:39:09 +01:00
Compare commits
12 Commits
9b3c11cc68
...
bb22ad95b7
Author | SHA1 | Date | |
---|---|---|---|
bb22ad95b7 | |||
|
682fcc09cc | ||
60e83b24f9 | |||
|
c30501185c | ||
|
61f77ef19e | ||
|
c0834491d3 | ||
|
fe444e88a3 | ||
|
3a0e9bb733 | ||
|
0b25cb9f81 | ||
|
b19c3a83f3 | ||
|
728361ad7b | ||
|
f5e3e5bd21 |
@ -866,7 +866,7 @@
|
|||||||
<location filename="../src/GUI/gui.cpp" line="907"/>
|
<location filename="../src/GUI/gui.cpp" line="907"/>
|
||||||
<location filename="../src/GUI/gui.cpp" line="925"/>
|
<location filename="../src/GUI/gui.cpp" line="925"/>
|
||||||
<source>CRS directory:</source>
|
<source>CRS directory:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Directori CRS:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="909"/>
|
<location filename="../src/GUI/gui.cpp" line="909"/>
|
||||||
@ -1020,6 +1020,7 @@
|
|||||||
<translation>
|
<translation>
|
||||||
<numerusform>%n fitxer</numerusform>
|
<numerusform>%n fitxer</numerusform>
|
||||||
<numerusform>%n fitxers</numerusform>
|
<numerusform>%n fitxers</numerusform>
|
||||||
|
<numerusform>%n fitxers</numerusform>
|
||||||
</translation>
|
</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
@ -712,7 +712,7 @@
|
|||||||
<location filename="../src/GUI/gui.cpp" line="907"/>
|
<location filename="../src/GUI/gui.cpp" line="907"/>
|
||||||
<location filename="../src/GUI/gui.cpp" line="925"/>
|
<location filename="../src/GUI/gui.cpp" line="925"/>
|
||||||
<source>CRS directory:</source>
|
<source>CRS directory:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>CRS-mappe:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="913"/>
|
<location filename="../src/GUI/gui.cpp" line="913"/>
|
||||||
@ -1718,12 +1718,12 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/optionsdialog.cpp" line="70"/>
|
<location filename="../src/GUI/optionsdialog.cpp" line="70"/>
|
||||||
<source>Select the proper coordinate reference system (CRS) of maps without a CRS definition (JNX, KMZ and World file maps).</source>
|
<source>Select the proper coordinate reference system (CRS) of maps without a CRS definition (JNX, KMZ and World file maps).</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Velg riktig koordinatreferansesystem (CRS) for kart uten en CRS-definisjon (JNX, KMZ og World-file kart).</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/optionsdialog.cpp" line="73"/>
|
<location filename="../src/GUI/optionsdialog.cpp" line="73"/>
|
||||||
<source>Select the desired projection of vector maps (IMG, Mapsforge and ENC maps). The projection must be valid for the whole map area.</source>
|
<source>Select the desired projection of vector maps (IMG, Mapsforge and ENC maps). The projection must be valid for the whole map area.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Velg ønsket projeksjon for vektorkart (IMG, Mapsforge og ENC-kart). Projeksjonen må være gyldig for hele kartområdet.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/optionsdialog.cpp" line="104"/>
|
<location filename="../src/GUI/optionsdialog.cpp" line="104"/>
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
#define HASH_T uint
|
#define HASH_T uint
|
||||||
|
|
||||||
|
inline uint qHash(const QPoint &p)
|
||||||
|
{
|
||||||
|
return qHash(QPair<int, int>(p.x(), p.y()));
|
||||||
|
}
|
||||||
#else // QT6
|
#else // QT6
|
||||||
#define HASH_T size_t
|
#define HASH_T size_t
|
||||||
#endif // QT6
|
#endif // QT6
|
||||||
|
|
||||||
inline HASH_T qHash(const QPoint &p)
|
|
||||||
{
|
|
||||||
return ::qHash(p.x()) ^ ::qHash(p.y());
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // HASH_H
|
#endif // HASH_H
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include "common/rectc.h"
|
#include "common/rectc.h"
|
||||||
#include "common/garmin.h"
|
#include "common/garmin.h"
|
||||||
|
#include "common/hash.h"
|
||||||
#include "deltastream.h"
|
#include "deltastream.h"
|
||||||
#include "huffmanstream.h"
|
#include "huffmanstream.h"
|
||||||
#include "style.h"
|
#include "style.h"
|
||||||
@ -13,12 +14,10 @@ using namespace IMG;
|
|||||||
|
|
||||||
#define MASK(bits) ((1U << (bits)) - 1U)
|
#define MASK(bits) ((1U << (bits)) - 1U)
|
||||||
|
|
||||||
static quint64 pointId(const QPoint &pos, quint32 type)
|
static quint64 pointId(const QPoint &pos, quint32 type, const QString &label)
|
||||||
{
|
{
|
||||||
quint64 id;
|
quint64 hash = qHash(pos) ^ qHash(label);
|
||||||
|
quint64 id = ((quint64)type)<<40 | (hash & 0xFFFFFFFFFF);
|
||||||
uint hash = (uint)qHash(QPair<int, int>(pos.x(), pos.y()));
|
|
||||||
id = ((quint64)type)<<32 | hash;
|
|
||||||
|
|
||||||
// Increase rendering priorities for some special items
|
// Increase rendering priorities for some special items
|
||||||
if (!Style::isCountry(type) && !Style::isMarina(type))
|
if (!Style::isCountry(type) && !Style::isMarina(type))
|
||||||
@ -484,11 +483,11 @@ bool RGNFile::pointObjects(Handle &hdl, const SubDiv *subdiv,
|
|||||||
|
|
||||||
point.type = (quint16)type<<8 | subtype;
|
point.type = (quint16)type<<8 | subtype;
|
||||||
point.coordinates = Coordinates(toWGS24(pos.x()), toWGS24(pos.y()));
|
point.coordinates = Coordinates(toWGS24(pos.x()), toWGS24(pos.y()));
|
||||||
point.id = pointId(pos, point.type);
|
|
||||||
if (lbl && (labelPtr & 0x3FFFFF))
|
if (lbl && (labelPtr & 0x3FFFFF))
|
||||||
point.label = lbl->label(lblHdl, labelPtr & 0x3FFFFF,
|
point.label = lbl->label(lblHdl, labelPtr & 0x3FFFFF,
|
||||||
labelPtr & 0x400000, !(Style::isCountry(point.type)
|
labelPtr & 0x400000, !(Style::isCountry(point.type)
|
||||||
|| Style::isState(point.type)), Style::isSpot(point.type));
|
|| Style::isState(point.type)), Style::isSpot(point.type));
|
||||||
|
point.id = pointId(pos, point.type, point.label.text());
|
||||||
|
|
||||||
points->append(point);
|
points->append(point);
|
||||||
}
|
}
|
||||||
@ -537,9 +536,9 @@ bool RGNFile::extPointObjects(Handle &hdl, const SubDiv *subdiv,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
point.coordinates = Coordinates(toWGS24(p.x()), toWGS24(p.y()));
|
point.coordinates = Coordinates(toWGS24(p.x()), toWGS24(p.y()));
|
||||||
point.id = pointId(p, point.type);
|
|
||||||
if (lbl && (labelPtr & 0x3FFFFF))
|
if (lbl && (labelPtr & 0x3FFFFF))
|
||||||
point.label = lbl->label(lblHdl, labelPtr & 0x3FFFFF);
|
point.label = lbl->label(lblHdl, labelPtr & 0x3FFFFF);
|
||||||
|
point.id = pointId(p, point.type, point.label.text());
|
||||||
|
|
||||||
points->append(point);
|
points->append(point);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user