public static async Task<double> GetMaxValueFromField(string vectorFilePath, string fieldName){double maxValue = 0;//矢量所在文件夹var filePath = System.IO.Path.GetDirectoryName(vectorFilePath);//矢量名称var fileName = System.IO.Path.GetFileNameWithoutExtension(vectorFilePath);await QueuedTask.Run(() =>{using (Geodatabase geodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(filePath)))){var featureClass = geodatabase.OpenDataset<FeatureClass>(fileName);if (featureClass != null){Table fratureclasstable = featureClass.GetArchiveTable();ArcGIS.Core.Data.QueryFilter queryFilter = new ArcGIS.Core.Data.QueryFilter { SubFields = fieldName };