Fix some casing issues for plate files (#180)
This commit is contained in:
Родитель
4cd88b7b1b
Коммит
c5b3479477
|
@ -28,7 +28,7 @@ namespace WWT.Providers
|
|||
{
|
||||
context.Response.ContentType = "image/png";
|
||||
|
||||
using (var s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "Jupiter.plate", level, tileX, tileY, token))
|
||||
using (var s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "jupiter.plate", level, tileX, tileY, token))
|
||||
{
|
||||
await s.CopyToAsync(context.Response.OutputStream, token);
|
||||
context.Response.Flush();
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace WWT.Providers
|
|||
{
|
||||
context.Response.ContentType = "image/png";
|
||||
|
||||
using (var s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "mars.plate", level, tileX, tileY, token))
|
||||
using (var s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "Mars.plate", level, tileX, tileY, token))
|
||||
{
|
||||
await s.CopyToAsync(context.Response.OutputStream, token);
|
||||
context.Response.Flush();
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace WWT.Providers
|
|||
{
|
||||
context.Response.ContentType = "image/png";
|
||||
|
||||
using (Stream s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "moon.plate", level, tileX, tileY, token))
|
||||
using (Stream s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "Moon.plate", level, tileX, tileY, token))
|
||||
{
|
||||
await s.CopyToAsync(context.Response.OutputStream, token);
|
||||
context.Response.Flush();
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace WWT.Providers
|
|||
{
|
||||
context.Response.ContentType = "image/png";
|
||||
|
||||
using (var s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "rass.plate", level, tileX, tileY, token))
|
||||
using (var s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "RASS.plate", level, tileX, tileY, token))
|
||||
{
|
||||
await s.CopyToAsync(context.Response.OutputStream, token);
|
||||
context.Response.Flush();
|
||||
|
|
|
@ -38,7 +38,7 @@ namespace WWT.Providers
|
|||
{
|
||||
context.Response.ContentType = "image/png";
|
||||
|
||||
using (Stream s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "sdss_8.plate", level, tileX, tileY, token))
|
||||
using (Stream s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "SDSS_8.plate", level, tileX, tileY, token))
|
||||
{
|
||||
await s.CopyToAsync(context.Response.OutputStream, token);
|
||||
context.Response.Flush();
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace WWT.Providers
|
|||
{
|
||||
context.Response.ContentType = "image/png";
|
||||
|
||||
using (Stream s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "VLSS.plate", level, tileX, tileY, token))
|
||||
using (Stream s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "vlss.plate", level, tileX, tileY, token))
|
||||
{
|
||||
await s.CopyToAsync(context.Response.OutputStream, token);
|
||||
context.Response.Flush();
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace WWT.Providers
|
|||
{
|
||||
context.Response.ContentType = "image/png";
|
||||
|
||||
using (Stream s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "WMAP.plate", level, tileX, tileY, token))
|
||||
using (Stream s = await _plateTiles.GetStreamAsync(_options.WwtTilesDir, "wmap.plate", level, tileX, tileY, token))
|
||||
{
|
||||
await s.CopyToAsync(context.Response.OutputStream, token);
|
||||
context.Response.Flush();
|
||||
|
|
|
@ -20,6 +20,6 @@ namespace WWT.Providers.Tests
|
|||
}
|
||||
|
||||
protected override Task<Stream> GetStreamFromPlateTilePyramidAsync(IPlateTilePyramid plateTiles, int level, int x, int y)
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "Jupiter.plate", level, x, y, default);
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "jupiter.plate", level, x, y, default);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,6 @@ namespace WWT.Providers.Tests
|
|||
}
|
||||
|
||||
protected override Task<Stream> GetStreamFromPlateTilePyramidAsync(IPlateTilePyramid plateTiles, int level, int x, int y)
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "mars.plate", level, x, y, default);
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "Mars.plate", level, x, y, default);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,6 @@ namespace WWT.Providers.Tests
|
|||
}
|
||||
|
||||
protected override Task<Stream> GetStreamFromPlateTilePyramidAsync(IPlateTilePyramid plateTiles, int level, int x, int y)
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "moon.plate", level, x, y, default);
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "Moon.plate", level, x, y, default);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace WWT.Providers.Tests
|
|||
|
||||
|
||||
protected override Task<Stream> GetStreamFromPlateTilePyramidAsync(IPlateTilePyramid plateTiles, int level, int x, int y)
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "rass.plate", level, x, y, default);
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "RASS.plate", level, x, y, default);
|
||||
|
||||
protected override void ExpectedResponseAboveMaxLevel(IResponse response)
|
||||
{
|
||||
|
|
|
@ -21,6 +21,6 @@ namespace WWT.Providers.Tests
|
|||
}
|
||||
|
||||
protected override Task<Stream> GetStreamFromPlateTilePyramidAsync(IPlateTilePyramid plateTiles, int level, int x, int y)
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "VLSS.plate", level, x, y, default);
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "vlss.plate", level, x, y, default);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,6 @@ namespace WWT.Providers.Tests
|
|||
}
|
||||
|
||||
protected override Task<Stream> GetStreamFromPlateTilePyramidAsync(IPlateTilePyramid plateTiles, int level, int x, int y)
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "WMAP.plate", level, x, y, default);
|
||||
=> plateTiles.GetStreamAsync(Options.WwtTilesDir, "wmap.plate", level, x, y, default);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче