ITileMatrixBottomRightCorner Property |
The bottom right coordinate of the area covered by the tiles of the matrix set (with bottom < top).
Namespace:
Ptv.XServer.Controls.Map.Layers.WmtsLayer
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax Point BottomRightCorner { get; }
ReadOnly Property BottomRightCorner As Point
Get
property Point BottomRightCorner {
Point get ();
}
abstract BottomRightCorner : Point with get
Property Value
Type:
PointRemarks
The WMTS specification does not include the bottom right corner but suggests to calculate it like this:
var pixelSpan = ScaleDenominator * 0.28 * 1e-3 / metersPerUnit(CRS);
var tileSpanX = TileWidth * pixelSpan;
var tileSpanY = TileHeight * pixelSpan;
return new Point(
TopLeftCorner.X + tileSpanX* MatrixWidth,
TopLeftCorner.Y - tileSpanY* MatrixHeight
);
For the bottom right corner to be correct, it is crucial to have a proper pixel span. However,
the formula above incorporates additional resolution parameters (both device and CRS) that are not
entirely clear or seem to provide fixed values in any circumstances. We therefore decided to
explicitly include the BottomRightCorner as a property in the interface in order to make
implementations robust against misinterpretations. As the ScaleDenominator within a single matrix
set is solely used to calculate the bottom right corner, we also decided to drop that property.
See Also