Tiles à la Google Maps: Coordinates, Tile Bounds and Projection

原文出处:http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/

 

参考链接:http://www.cnblogs.com/LionGG/archive/2009/04/20/1439905.html

 

Addressing tiles: same tile bounds with different indexes

 

Google Maps, Microsoft Virtual Earth, Yahoo Maps, and other commercial API providers as well as OpenStreetMap and OpenAerialMap are using the same projection and tiling profile and tiles are therefore compatible. The extents of all tiles as well as the zoom levels (resolution in meters per pixel) are predefined for the whole Earth.
Difference is only in the way how the equivalent tiles are indexed. There are three main systems of tile adressing: Google XYZ, Microsoft QuadTree and from the open-source world comming TMS (Tile Map Service).

 

  1. Google - described in the Google Maps API documentation
  2. TMS an variant of Google tile addressing, which is used in open-source projects like OpenLayers or TileCache. This system is described in the OSGEO Tile Map Service (TMS) Specification
  3. QuadTree - with documentation in the Virtal Earth Tile System from Microsoft

MapTiler/GDAL2Tiles (the tile generator application) is following the TMS specification, because there is not any standard for tiling yet, OGC (Open Geospatial Consorcium) is working on the WMTS (Web Map Tiling Service) which is inspired by TMS.

 

Spherical Mercator EPSG:900913 (EPSG:3785) and WGS84 Datum

 

The coordinates you use in the Google Maps API and which are presented to the users is Latitude/Longitude in WGS84 Datum (when directly projected by Platte Carre then it is referenced as EPSG:4326).
But for map publishing in the form compatible with all the popular interactive maps and especially for ground tile overlays you need to use Mercator map projection. Interactive web maps are using "Spherical Mercator" system which uses Mercator projection on the sphere instead of WGS84 ellipsoid. It is defined as EPSG:900913 or EPSG:3785. Details about this system are part of Virtual Earth documentation as well as OpenLayers documentation. Exact numeric definition for GIS systems (in formats like WKT or Proj4), is available in the SpatialReference.org on-line database.

 

Links ...

 

Video: Creating Custom Maps with John Coryat

Spatial references, coordinate systems, projections, datums, ellipsoids – confusing?

 

 

 

Source code for utility calculating tile bounds

 

I wrote a class GlobalMercator implementing all necessary coordinate system conversions in Python. The class is documented and quite straightforward.

You can also download the source code globalmaptiles.py and run it as a command line utility. It prints the list of tiles for given WGS84 lat/lon coordinates (or bounding box). For each tile several information is printed including boundaries in EPSG:900913 and WGS84:

python globalmaptiles.py [zoom] [lat] [lon] 
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值