public static ASCIIGridMetadata GetASCIIMapMetaData(string mapName) { CreateDataFrame(mapName); if (mapDataFrames[mapName].asciiMapMetaData == null) { MapDataFrame dataFrame = mapDataFrames[mapName]; dataFrame.asciiMapMetaData = ASCIIGridImporter.ReadMetadata(GetFilePathByName(mapName, PathDataType.height) + ".txt"); mapDataFrames[mapName] = dataFrame; } return(mapDataFrames[mapName].asciiMapMetaData); }
public static MapMetadata ReadMetadata(string path, MapDataType type = MapDataType.ASCIIGrid) { switch (type) { case MapDataType.ASCIIGrid: return(ASCIIGridImporter.ReadMetadata(path)); case MapDataType.Binary: return(BinaryFileImporter.ReadMetadata(path)); default: throw new System.NotImplementedException("Type " + type + " not implemented!"); } }