Example #1
0
        public static frmImportRaster PrepareToImportRaster(Surface refSurface, Purposes purpose, string Noun, IntPtr parentWindow)
        {
            frmImportRaster frm    = null;
            Raster          source = ProjectManager.BrowseRaster(naru.ui.UIHelpers.WrapMessageWithNoun("Browse and Select a", Noun, "Raster"), parentWindow);

            if (source is Raster)
            {
                if (GISDatasetValidation.DSHasSpatialRef(source, "raster", "rasters"))
                {
                    frm = new frmImportRaster(source, refSurface, purpose, Noun);
                }
            }

            return(frm);
        }