Пример #1
0
 private bool ParseGridMap(NodeType mapType, string filePath)
 {
     if (mapType == NodeType.Clutter)
     {
         GeoGrcData item = new GeoGrcData(filePath);
         if (!item.Read())
         {
             this.m_IsAnyFileNotExist = true;
             this.m_LoadingErrorStr = this.m_LoadingErrorStr + "Reading GRC file error!\r\n";
             return false;
         }
         this.m_ClutterRasterData.Add(item);
     }
     else if (mapType == NodeType.Heights)
     {
         GeoGrdData data2 = new GeoGrdData(filePath);
         if (!data2.Read())
         {
             this.m_IsAnyFileNotExist = true;
             this.m_LoadingErrorStr = this.m_LoadingErrorStr + "Reading GRD file error!\r\n";
             return false;
         }
         this.m_HeightRasterData.Add(data2);
     }
     else
     {
         return false;
     }
     return true;
 }
Пример #2
0
 private GeoGrdData LoadGrdData(string grdFilePath)
 {
     string folderNodeName = this.GetFolderNodeName(NodeType.Heights, this.m_CurrentProjectFolder.HeightIndexPath);
     GeoGrdData data = new GeoGrdData(grdFilePath);
     data.FolderNodeName = folderNodeName;
     if (!data.Read())
     {
         this.m_IsAnyFileNotExist = true;
         this.m_LoadingErrorStr = this.m_LoadingErrorStr + "Reading GRC file error!\r\n";
         return null;
     }
     return data;
 }