mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Removed GeoApiProjection.GetBboxValue
This commit is contained in:
parent
b8f4af969d
commit
a741877e80
4 changed files with 9 additions and 17 deletions
|
|
@ -130,15 +130,14 @@ namespace MapControl
|
|||
/// </summary>
|
||||
public virtual string GetBboxValue(MapRect mapRect)
|
||||
{
|
||||
// Truncate bounding box to 1 cm precision.
|
||||
// Truncate values for seamless stitching of two WMS images at 180° longitude,
|
||||
// as done in WmsImageLayer.GetImageAsync.
|
||||
//
|
||||
const double p = 0.01;
|
||||
|
||||
return string.Format(CultureInfo.InvariantCulture, "{0:F2},{1:F2},{2:F2},{3:F2}",
|
||||
p * Math.Ceiling(mapRect.XMin / p),
|
||||
p * Math.Ceiling(mapRect.YMin / p),
|
||||
p * Math.Floor(mapRect.XMax / p),
|
||||
p * Math.Floor(mapRect.YMax / p));
|
||||
0.01 * Math.Ceiling(100d * mapRect.XMin),
|
||||
0.01 * Math.Ceiling(100d * mapRect.YMin),
|
||||
0.01 * Math.Floor(100d * mapRect.XMax),
|
||||
0.01 * Math.Floor(100d * mapRect.YMax));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue