欢迎来到天天文库
浏览记录
ID:19665926
大小:939.50 KB
页数:11页
时间:2018-10-04
《google 地图切片url地址解析》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、[置顶][置顶]Google地图切片URL地址解析分类:GIS2012-05-1911:568564人阅读评论(4)收藏举报googleurlchromeserviceweb目录(?)[+]1.一Google地图切片的投影方式及瓦片索引机制1.地图缩放级别的分辨率与地图比例尺的关系2.二Google地图瓦片地址解析1.四个参数的含义2.四个参数的关系3.验证1.三GMapNET一、Google地图切片的投影方式及瓦片索引机制1.Google地图采用的是Web墨卡托投影(如下图),为了方便忽略了两极变形较大的地区,
2、把世界地图做成了一个边长等于赤道周长的正方形(赤道长度为6378137米),原点在正方形中心,即经纬度为(0,0)处。Web墨卡托投影的X,Y坐标取值范围为:[-20037508.3427892,20037508.3427892],对应的经度取值范围为[-180,180],对应的纬度范围则为[-85.05112877980659,85.05112877980659]。具体投影解释请参考墨卡托投影:istheTibetanPlateaupoly.Centercityonlyapopulationofoveronem
3、illion.Xiningislocatedinthe"Tangfangudao"andtheancient"SilkRoad"road,istheLoessPlateauandtheTibetanPlateau,agriculturalandpastoralareasand,inconjunctionwiththeMinistryofcultureandIslamicculture 2.Google地图的索引机制是TMS(TileMapService)规范的一个变种,其地图瓦片如下图进行索引: Googl
4、e瓦片坐标系:把地球投影后形成的正方形划分为2的level(缩放级别)次幂个地图瓦片,原点在左上角,类似于像素坐标系;详细解释参见GoogleMapsAPI文档。istheTibetanPlateaupoly.Centercityonlyapopulationofoveronemillion.Xiningislocatedinthe"Tangfangudao"andtheancient"SilkRoad"road,istheLoessPlateauandtheTibetanPlateau,agricultural
5、andpastoralareasand,inconjunctionwiththeMinistryofcultureandIslamicculture TMS瓦片坐标系:TMS与Google的地图瓦片切割方法相同,不同的是TMS的原点在左下角。转换关系:TMS与Google坐标系的X、Z是相等的,Y的转换关系为:Y(TMS)+ Y(Google)=Math.pow(2,zoom)-1注:关于投影和瓦片索引机制强烈推荐阅读:TilesàlaGoogleMaps:Coordinates,TileB
6、oundsandProjection,文中详细分析了地图瓦片涉及各类坐标的转换关系及具体算法,包括瓦片坐标(Google、TMS、BingQuadTree)、像素坐标、WGS84经纬度、Mercator投影平面坐标等。3.地图缩放级别的分辨率与地图比例尺的关系istheTibetanPlateaupoly.Centercityonlyapopulationofoveronemillion.Xiningislocatedinthe"Tangfangudao"andtheancient"SilkRoad"road,i
7、stheLoessPlateauandtheTibetanPlateau,agriculturalandpastoralareasand,inconjunctionwiththeMinistryofcultureandIslamicculture地图缩放级别的分辨率(Resolution),是指某缩放级别每个像素代表的实际距离;地图比例尺(Scale),是指某缩放级别图上一米代表的实际距离;[plain]viewplaincopyprint?1.默认使用屏幕分辨率为96 2.算法: 3.dpi=96,即表示每
8、英寸96像素,1英寸=2.54厘米。 4.比例尺与分辨率的关系:Scale=Resolution×每米的像素个数, 5.即有Scale = Resolution×(96*100)/2.54 6.则Resolution = Scale*2.54/(96*100) 默认使用屏幕分辨率为96 算法: dpi=96,即表示每英寸96像素,1英寸=2.54厘米。 比例尺与分
此文档下载收益归作者所有