7 #include "common/hash.h"
19 Tile(int lon
, int lat
) : _lon(lon
), _lat(lat
) {}
21 int lon() const {return _lon
;}
22 int lat() const {return _lat
;}
24 QString
lonStr() const;
25 QString
latStr() const;
26 QString
baseName() const;
28 bool operator==(const Tile
&other
) const
30 return (_lon
== other
._lon
&& _lat
== other
._lat
);
37 static void setCacheSize(int size
);
38 static void setDir(const QString
&path
);
39 static void clearCache();
40 static qreal
elevation(const Coordinates
&c
);
42 static QList
<Area
> tiles();
45 typedef QCache
<DEM::Tile
, QByteArray
> TileCache
;
47 static QString
fileName(const QString
&baseName
);
50 static TileCache _data
;
53 inline HASH_T
qHash(const DEM::Tile
&tile
)
55 return (qHash(tile
.lon()) ^ qHash(tile
.lat()));
59 QDebug
operator<<(QDebug dbg
, const DEM::Tile
&tile
);