/// <summary>
 /// Convert bounding box from one coordinate system to
 /// another coordinate system.
 /// Converted bounding box is returned as a polygon
 /// since it probably is not a rectangle any more.
 /// </summary>
 /// <param name="clientInformation">Information about the client that makes this web service call.</param>
 /// <param name="boundingBox">Bounding boxe that should be converted.</param>
 /// <param name="fromCoordinateSystem">From coordinate system.</param>
 /// <param name="toCoordinateSystem">To coordinate system.</param>
 /// <returns>Converted bounding box.</returns>
 public WebPolygon GetConvertedBoundingBox(
     WebClientInformation clientInformation,
     WebBoundingBox boundingBox,
     WebCoordinateSystem fromCoordinateSystem,
     WebCoordinateSystem toCoordinateSystem)
 {
     using (WebServiceContext context = GetWebServiceContext(clientInformation))
     {
         try
         {
             return(WebServiceData.CoordinateConversionManager.GetConvertedBoundingBox(
                        boundingBox,
                        fromCoordinateSystem,
                        toCoordinateSystem));
         }
         catch (Exception exception)
         {
             LogException(clientInformation, context, exception);
             LogParameter(context, "BoundingBox", boundingBox.WebToString());
             LogParameter(context, "FromCoordinateSystem", fromCoordinateSystem.WebToString());
             LogParameter(context, "ToCoordinateSystem", toCoordinateSystem.WebToString());
             throw;
         }
     }
 }