Example #1
0
 public DataSourceArcGISCache(string path)
 {
     if (!Directory.Exists(path + "\\_alllayers"))
     {
         throw new Exception("_alllayers directory does not exist!");
     }
     Initialize(path);
     ConvertingStatus = new ConvertStatus();
 }
Example #2
0
 /// <summary>
 /// when isForConvert==true, gettile() method will return null instead of returning an error image byte[]
 /// </summary>
 /// <param name="name"></param>
 public DataSourceCustomOnlineMaps(string name)
 {
     _mapName = name;
     Initialize("N/A");
     if (sara.gisserver.console.config.ConfigManager.App_AllowFileCacheOfOnlineMaps)
     {
         //init local cache file if does not exist.
         string localCacheFileName = sara.gisserver.console.config.ConfigManager.App_FileCachePath + "\\" + _mapName.Trim().ToLower() + ".cache";
         ValidateLocalCacheFile(localCacheFileName);
         TileLoaded += new EventHandler <TileLoadEventArgs>(InternalOnTileLoaded);
     }
     ConvertingStatus = new ConvertStatus();
 }