- Messages
- 5,125
- Country
-
I finally got some time and tools to create an aerial imagery. Lots of things to digest here, but a good start.
Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.
Lots of things to digest here, but a good start.
...
I see QGIS can georeference images to match the Bing imagery:
...
And QGIS can create 256x256 tiles... We just need a way to reorganize and rename those tiles to the Bing Maps convention.
....
The remaining problem is to rename all the tiles. 20 is the zoom, the sub-directories are the "x" location, and the tile names are the "y". Somebody will come up with a program to rename them as quadtree, and gather them in a single folder.
/// <summary>
/// Converts tile XY coordinates into a QuadKey at a specified level of detail.
/// </summary>
/// <param name="tileX">Tile X coordinate.</param>
/// <param name="tileY">Tile Y coordinate.</param>
/// <param name="levelOfDetail">Level of detail, from 1 (lowest detail)
/// to 23 (highest detail).</param>
/// <returns>A string containing the QuadKey.</returns>
public static string TileXYToQuadKey(int tileX, int tileY, int levelOfDetail)
{
StringBuilder quadKey = new StringBuilder();
for (int i = levelOfDetail; i > 0; i--)
{
char digit = '0';
int mask = 1 << (i - 1);
if ((tileX & mask) != 0)
{
digit++;
}
if ((tileY & mask) != 0)
{
digit++;
digit++;
}
quadKey.Append(digit);
}
return quadKey.ToString();
}
Unfortunately the tool seems to be producing Quadkeys that are too long for me and FS2020 is not recognising them in order to compile. It's my understanding that the quadkeys should be 20 digits long at 20 zoom?
Using as described in readme and .bat.
Any help appreciated.