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; }
private GeoGrcData LoadGrcData(string grcFilePath) { string folderNodeName = this.GetFolderNodeName(NodeType.Clutter, this.m_CurrentProjectFolder.ClutterIndexPath); GeoGrcData data = new GeoGrcData(grcFilePath); 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; }