/// <summary> /// Tries to open raster datasource (either RGB image or grid) with specified name. /// </summary> /// <param name="Filename">Filename of datasource.</param> /// <param name="OpenStrategy">Strategy to be used with default recommended value fosAutoDetect. Three more strategies /// are applicable here: fosRgbImage, fosDirectGrid, fosProxyForGrid.</param> /// <param name="cBack">Callback interface.</param> /// <returns>Image object or null on failure.</returns> public Image OpenRaster(string Filename, tkFileOpenStrategy OpenStrategy, ICallback cBack = null) { throw new NotImplementedException(); }
/// <summary> /// Checks whether specific open strategy is applicable for a given datasource. /// </summary> /// <param name="Filename">Filename of datasource to open.</param> /// <param name="OpenStrategy">Open strategy to check.</param> /// <remarks>Inconsistent behaviour, i.e. return value is false while datasource is still can be opened with a given strategy, /// should be reported as bugs. The opposite case, i.e. return value is true while datasource fails to open with given strategy, /// may occur by design, but it may also be an indication of bugs in some other parts of MapWinGIS.</remarks> /// <returns>True in case strategy is applicable.</returns> public bool get_CanOpenAs(string Filename, tkFileOpenStrategy OpenStrategy) { throw new NotImplementedException(); }
/// <summary> /// Tries to open datasource with specified name. /// </summary> /// <param name="Filename">Filename of datasource.</param> /// <param name="OpenStrategy">Strategy to be used with default recommended value fosAutoDetect.</param> /// <param name="cBack">Callback interface.</param> /// <remarks>Return value may be either Shapefile or Image object. The latter is used for rendering both RGB images and grids. /// Under the hood the function uses OpenShapefile and OpenRaster methods, so their behaviour will be consistent.</remarks> /// <returns>Opened datasource or null on failure.</returns> public object Open(string Filename, tkFileOpenStrategy OpenStrategy = tkFileOpenStrategy.fosAutoDetect, ICallback cBack = null) { throw new NotImplementedException(); }