コード例 #1
0
        //---------------------------------------------------------------------

        private IOutputRaster <ClassPixel> CreateMap(string mapname)
        {
            string path = MapFileNames.ReplaceTemplateVars(mapNameTemplate, mapname, modelCore.CurrentTime);

            UI.WriteLine("Writing reclass map to {0} ...", path);
            return(modelCore.CreateRaster <ClassPixel>(path,
                                                       modelCore.Landscape.Dimensions,
                                                       modelCore.LandscapeMapMetadata));
        }
コード例 #2
0
        //---------------------------------------------------------------------

        private IOutputRaster <ClassPixel> CreateMap(string mapname,
                                                     int currentTime)
        {
            string path = MapFileNames.ReplaceTemplateVars(mapNameTemplate, mapname, currentTime);

            UI.WriteLine("Writing reclass map to {0} ...", path);
            return(Util.Raster.Create <ClassPixel>(path,
                                                   Model.LandscapeMapDims,
                                                   Model.LandscapeMapMetadata));
        }