You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
708 B

#ifndef GOOGLE_TILE_H
#define GOOGLE_TILE_H
6 months ago
#include <opencv2/opencv.hpp>
#include <string>
#include <vector>
6 months ago
struct TileIndex
{
int x;
int y;
int z;
};
struct TileInfo
{
TileIndex ind;
double north;
double south;
double east;
double west;
};
class googleTile
6 months ago
{
public:
googleTile();
~googleTile();
public:
// 输出kml png
void ExportGeoPng(cv::Mat _pan, TileInfo info, std::string dir, std::string name);
// 输出tile
void ExportTile(cv::Mat _pan, TileInfo info, std::string dir, std::string name);
public:
TileIndex LatLonToTile(double latitude, double longitude, int zoomLevel);
6 months ago
private:
int zoom_;
};
#endif // GOOGLE_TILE_H