コード例 #1
0
ファイル: GeoDataMgr.cs プロジェクト: xiaoyj/Space
 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
ファイル: GeoDataMgr.cs プロジェクト: xiaoyj/Space
 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;
 }