예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
    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);
    }
예제 #4
0
    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);
    }