Hi Stefan,
To get the scales of the different levels of a tile package you could use Tilecache class. Below is the code that gives you the scale for each level:
TileCache tileCache = new TileCache(<location_of_tpk_file>);
await tileCache.LoadAsync();
if(tileCache.LoadStatus == LoadStatus.Loaded)
Console.WriteLine(tileCache.TileInfo.LevelsOfDetail);
var lods = tileCache.TileInfo.LevelsOfDetail.ToList();
foreach(LevelOfDetail lod in lods)
{
Console.WriteLine("LOD Scale: " + lod.Scale);
Console.WriteLine("LOD Level: " + lod.Level);
}
The scale exactly matches with the mapserver.json file of the tpk.
Attached is the output of my tpk. Hope that helps
TileCache Constructor
Nagma