geo-data / cesium-terrain-builder

A C++ library and associated command line tools designed to create terrain tiles for use in the Cesium JavaScript library
Other
706 stars 338 forks source link

Tile coordinates are not consistent with Google or TMS standard #98

Closed predictwise closed 3 years ago

predictwise commented 3 years ago

Hey @homme,

Thanks for your great work!

I am confused that the coordinates of generated tile are quite different from the Google standard or TMS standard. For example:

Tile(x=69555, y=54636, z=16) is what I got from this tool. However, the corresponding tile coordinates in Google standard are Tile(x=69555, y=38016, z=17) + Tile(x=69555, y=38017, z=17).

Or Tile(x=69555, y=93055, z=17) + Tile(x=69555, y=93054, z=17) in TMS standard.

In addition, each tile generated from cesium-terrain-builder looks like a rectangle rather than a square. But tiles using Google standard or TMS standard are all squares.

I would like to know how to convert the tile coordinates to those using Google standard or TMS standard. Thanks a lot.

Oliver