Example #1
0
        public static IRasterDictionaryTemplate <byte> CreateLandRasterTemplate()
        {
            string dir = AppDomain.CurrentDomain.BaseDirectory + "SystemData\\RasterTemplate\\";
            object obj = new LandRasterDictionaryTemplate(dir + "China_LandRaster.dat",
                                                          dir + "China_LandRaster_Code.txt");

            return(obj as IRasterDictionaryTemplate <byte>);
        }
Example #2
0
 public static IRasterDictionaryTemplate <byte> GetLandRasterTemplate()
 {
     if (_rasterTemplates.ContainsKey("landuse"))
     {
         return(_rasterTemplates["landuse"] as IRasterDictionaryTemplate <byte>);
     }
     else
     {
         string dir = AppDomain.CurrentDomain.BaseDirectory + "SystemData\\RasterTemplate\\";
         object obj = new LandRasterDictionaryTemplate(dir + "China_LandRaster.dat",
                                                       dir + "China_LandRaster_Code.txt");
         _rasterTemplates.Add("landuse", obj);
         return(_rasterTemplates["landuse"] as IRasterDictionaryTemplate <byte>);
     }
 }