/// <summary> /// Gets a bounding box of the data exposed by the wms service /// bbox can be then used to decide whether or not cache should be dumped and such /// </summary> /// <param name="drv"></param> /// <returns></returns> public Cartomatic.Wms.WmsDriver.WmsBoundingBox GetWmsBoundingBox(Cartomatic.Wms.WmsDriver.Base drv) { Cartomatic.Wms.WmsDriver.WmsBoundingBox output = null; try { output = drv.GetBoundingBox(); } catch { } //silently fail return(output); }
/// <summary> /// Gets a driver instance that will be used to handle the request /// </summary> /// <param name="context"></param> /// <returns></returns> public Cartomatic.Wms.WmsDriver.Base GetWmsDriver(HttpContext context) { Cartomatic.Wms.WmsDriver.Base drv = null; switch (DriverType) { case WmsDriverType.Gdal: drv = GetGdalWmsDriver(context); break; case WmsDriverType.Manifold: drv = GetManifoldWmsDriver(context); break; } return(drv); }