コード例 #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 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!");
        }
    }