Esempio n. 1
0
 public static SortedDictionary <string, double[][]> StatPercent <T>(string rasterFile, string templateName, Dictionary <string, Func <T, bool> > funcs, Action <int, string> progressTracker, bool weight, float weightZoom)
 {
     if (templateName.Contains("vector"))
     {
         string[] split           = templateName.Split(':');
         string   key             = split[0];
         string   shpFilename     = split[1];
         string   shpFieldName    = split[2];
         RasterStatByVector <T> v = new RasterStatByVector <T>(progressTracker);
         return(v.CountAndPercentByVector(rasterFile, shpFilename, shpFieldName, funcs, weight, weightZoom));
     }
     else
     {
         throw new NotSupportedException("暂未实现除基于矢量面的分段面积百分比统计");
     }
 }