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 BinaryFileMetadata GetBinaryMapMetaData(string mapName) { CreateDataFrame(mapName); if (mapDataFrames[mapName].binaryMapMetaData == null) { MapDataFrame dataFrame = mapDataFrames[mapName]; dataFrame.binaryMapMetaData = BinaryFileImporter.ReadMetadata(GetFilePathByName(mapName, PathDataType.height) + ".hdr"); mapDataFrames[mapName] = dataFrame; } return(mapDataFrames[mapName].binaryMapMetaData); }
public static OSMData GetOSMData(string mapName) { CreateDataFrame(mapName); MapDataFrame dataFrame = mapDataFrames[mapName]; if (dataFrame.osmData == null) { dataFrame.osmData = OSMDataImporter.ReadOSMData(GetFilePathByName(mapName, PathDataType.trail) + ".xml"); mapDataFrames[mapName] = dataFrame; } return(mapDataFrames[mapName].osmData); }
public static MapData GetASCIIMapData(string mapName) { CreateDataFrame(mapName); MapDataFrame dataFrame = mapDataFrames[mapName]; if (dataFrame.mapData == null) { dataFrame.mapData = ASCIIGridImporter.ReadMapData(GetFilePathByName(mapName, PathDataType.height) + ".txt", GetASCIIMapMetaData(mapName)); mapDataFrames[mapName] = dataFrame; } return(mapDataFrames[mapName].mapData); }