7 #pragma warning(disable : 4251)
44 #pragma warning(disable : 4251)
59 GeoTile(
size_t tile_width,
size_t tile_height,
size_t pixelsize,
double min_lon,
double min_lat,
double max_lon,
double max_lat);
74 int Insert(std::string quadkey,
const unsigned char *image);
88 virtual void LatLongToPixelXY(
double lon,
double lat,
int lod,
size_t &pixelX,
size_t &pixelY)
const = 0;
102 virtual void PixelXYToLatLon(
size_t pixelX,
size_t pixelY,
int lod,
double &lon,
double &lat)
const = 0;
120 void PixelXYToTileXY(
size_t pixelX,
size_t pixelY,
size_t &tileX,
size_t &tileY,
size_t &tilePixelX,
size_t &tilePixelY)
const;
130 void TileXYToPixelXY(
size_t tileX,
size_t tileY,
size_t &pixelX,
size_t &pixelY)
const;
145 const unsigned char *
GetTile(std::string quadkey)
const;
164 const unsigned char *
GetTile(
size_t tileX,
size_t tileY,
int lod)
const
166 std::string quadkey = TileXYToQuadKey(tileX, tileY, lod);
167 return (GetTile(quadkey));
192 int GetMap(
size_t pixelX0,
size_t pixelY0,
size_t pixelX1,
size_t pixelY1,
int lod,
unsigned char *map_image)
const;
215 static int QuadKeyToTileXY(std::string quadKey,
size_t &tileX,
size_t &tileY,
int &lod);
226 void MapSize(
int lod,
size_t &nx,
size_t &ny)
const;
242 int MapSize(
size_t pixelX0,
size_t pixelY0,
size_t pixelX1,
size_t pixelY1,
int lod,
size_t &nx,
size_t &ny)
const;
244 void GetLatLonExtents(
double &minlon,
double &minlat,
double &maxlon,
double &maxlat)
const
246 minlon = _MinLongitude;
247 minlat = _MinLatitude;
248 maxlon = _MaxLongitude;
249 maxlat = _MaxLatitude;
271 void LatLongRectToPixelRect(
const double geoSW[2],
const double geoNE[2],
int lod,
size_t pixelSW[2],
size_t pixelNE[2])
const;
275 std::map<std::string, unsigned char *> _tiles;
277 void _CopyTileToMap(
const unsigned char *tile,
size_t tilePixelX0,
size_t tilePixelY0,
size_t tilePixelX1,
size_t tilePixelY1,
unsigned char *map,
size_t pixelX0,
size_t pixelX1,
size_t nx,
289 double _Clip(
double n,
double minValue,
double maxValue)
const;
static int QuadKeyToTileXY(std::string quadKey, size_t &tileX, size_t &tileY, int &lod)
void GetLatLonExtents(double &minlon, double &minlat, double &maxlon, double &maxlat) const
int GetMap(size_t pixelX0, size_t pixelY0, size_t pixelX1, size_t pixelY1, int lod, unsigned char *map_image) const
virtual void LatLongToPixelXY(double lon, double lat, int lod, size_t &pixelX, size_t &pixelY) const =0
double _Clip(double n, double minValue, double maxValue) const
GeoTile(size_t tile_width, size_t tile_height, size_t pixelsize, double min_lon, double min_lat, double max_lon, double max_lat)
void TileXYToPixelXY(size_t tileX, size_t tileY, size_t &pixelX, size_t &pixelY) const
void PixelXYToTileXY(size_t pixelX, size_t pixelY, size_t &tileX, size_t &tileY, size_t &tilePixelX, size_t &tilePixelY) const
void LatLongRectToPixelRect(const double geoSW[2], const double geoNE[2], int lod, size_t pixelSW[2], size_t pixelNE[2]) const
int Insert(std::string quadkey, const unsigned char *image)
void GetTileSize(size_t &w, size_t &h) const
static std::string TileXYToQuadKey(size_t tileX, size_t tileY, int lod)
virtual void PixelXYToLatLon(size_t pixelX, size_t pixelY, int lod, double &lon, double &lat) const =0
const unsigned char * GetTile(std::string quadkey) const
int MapSize(size_t pixelX0, size_t pixelY0, size_t pixelX1, size_t pixelY1, int lod, size_t &nx, size_t &ny) const
void MapSize(int lod, size_t &nx, size_t &ny) const
const unsigned char * GetTile(size_t tileX, size_t tileY, int lod) const