MapServiceExtensionsApproximateBoundingBox Method (IBoundingBox, ICoordinateTransformation, Int32, Double) |
Transforms a bounding box from one CRS to another.
Namespace:
Ptv.XServer.Controls.Map.Tools.Reprojection
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public static MapRectangle ApproximateBoundingBox(
this IBoundingBox boundingBox,
ICoordinateTransformation transformation,
int nSupportingPoints,
double resizeFactor
)
<ExtensionAttribute>
Public Shared Function ApproximateBoundingBox (
boundingBox As IBoundingBox,
transformation As ICoordinateTransformation,
nSupportingPoints As Integer,
resizeFactor As Double
) As MapRectangle
public:
[ExtensionAttribute]
static MapRectangle ApproximateBoundingBox(
IBoundingBox^ boundingBox,
ICoordinateTransformation^ transformation,
int nSupportingPoints,
double resizeFactor
)
[<ExtensionAttribute>]
static member ApproximateBoundingBox :
boundingBox : IBoundingBox *
transformation : ICoordinateTransformation *
nSupportingPoints : int *
resizeFactor : float -> MapRectangle
Parameters
- boundingBox
- Type: Ptv.XServer.Controls.Map.Tools.ReprojectionIBoundingBox
Bounding box to transform. - transformation
- Type: Ptv.Components.ProjectionsICoordinateTransformation
The transformation that transforms points from the source CRS to the target CRS. - nSupportingPoints
- Type: SystemInt32
Number of supporting points to use. - resizeFactor
- Type: SystemDouble
An additional factor for resizing the resulting bounding box; <0 for adding an offset based on side line deviations, >0 for simply resizing the resulting box.
Return Value
Type:
MapRectangleThe transformed bounding box.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IBoundingBox. 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 This is extension does not only transform the corner points of a given bounding box but takes into
account that the bounds may be distorted when being transformed to another CRS.
See Also