Click or drag to resize

WmtsMapServiceExtensions.ApproximateBoundingBox Method

Utility extension that determines the bounding box for a tile matrix set based on MapServiceExtensions.ApproximateBoundingBox.

Namespace:  Ptv.XServer.Controls.Map.Layers.WmtsLayer
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public static IBoundingBox ApproximateBoundingBox(
	this IEnumerable<ITileMatrix> matrixSet,
	string sourceCrs,
	string targetCrs,
	int nSupportingPoints,
	double resizeFactor
)

Parameters

matrixSet
Type: System.Collections.Generic.IEnumerable<ITileMatrix>
Tile matrix set to calculate the bounding box for.
sourceCrs
Type: System.String
The CRS of the tile matrix set.
targetCrs
Type: System.String
The CRS of the bounding box to return.
nSupportingPoints
Type: System.Int32
Number of supporting points to use.
resizeFactor
Type: System.Double
An additional factor for resizing the resulting bounding box to be on the safe side.

Return Value

Type: IBoundingBox
Bounding box.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<ITileMatrix>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Refer to MapServiceExtensions.ApproximateBoundingBox for further documentation.
See Also