Click or drag to resize

WmtsMapServiceExtensionsApproximateBoundingBox 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.GenericIEnumerableITileMatrix
Tile matrix set to calculate the bounding box for.
sourceCrs
Type: SystemString
The CRS of the tile matrix set.
targetCrs
Type: SystemString
The CRS of the bounding box to return.
nSupportingPoints
Type: SystemInt32
Number of supporting points to use.
resizeFactor
Type: SystemDouble
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 IEnumerableITileMatrix. 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