Name Last Update
.idea Loading commit data...
lib Loading commit data...
out/production/TiandituDownloader Loading commit data...
src Loading commit data...
.DS_Store Loading commit data...
TiandituDownloader.iml Loading commit data...
my.db Loading commit data...
readme.md Loading commit data...

项目说明

TiandituDownload主要用于下载天地图数据,其坐标系为CGCS2000.


// 设置要下载的图片存储sqlite路径
TiandituDownload tiandituDownload = new TiandituDownload("my.db");
// 范围起始点(左下角、右上角)
Point pt = new Point(29.76,106.64);
Point pt2 = new Point(35.33, 108.12);
// 下载器
// 2 为最小level,9为最大level
// TianDiTuTiledMapServiceType.IMG_C 为下载数据类型
// 最后一个参数为merge,为true时,会将地图及其注记一并下载融合到一张图片中去
tiandituDownload.Download(pt, pt2, 2,9, TianDiTuTiledMapServiceType.IMG_C, true);