Hi,
I've been stuck at getting the tile a proper level and tile number (north - east tile number I mean) from the tile's horizontal/vertical span, and its center coordinates.
I know that a tile vertical span is computed from the level like this:
[math]h=\frac{\pi\cdot R}{2^{(level+8)}}[/math]So I tried reverse engineering the equation to get the level. I got level 8 for a tile with a 20m vertical span. But using the equation above gives me a 305m vertical span. Not good.
For the coordinates, I can easily get the coordinate for the center of the tile, its top left, bottom right, or any point needed to compute the tile's numbers.
The problem is so: how to get a tile level, and its "Orbiter coordinates" ?
Can you guys help me? Thanks in advance. :tiphat:
I've been stuck at getting the tile a proper level and tile number (north - east tile number I mean) from the tile's horizontal/vertical span, and its center coordinates.
I know that a tile vertical span is computed from the level like this:
[math]h=\frac{\pi\cdot R}{2^{(level+8)}}[/math]So I tried reverse engineering the equation to get the level. I got level 8 for a tile with a 20m vertical span. But using the equation above gives me a 305m vertical span. Not good.
For the coordinates, I can easily get the coordinate for the center of the tile, its top left, bottom right, or any point needed to compute the tile's numbers.
The problem is so: how to get a tile level, and its "Orbiter coordinates" ?
Can you guys help me? Thanks in advance. :tiphat: