示例#1
0
        public MapInfoWithColorMap Read(string path)
        {
            JsonSerializerSettings settings = BuildSerSettings();

            string fContents = File.ReadAllText(path);

            MapInfoWithColorMapForExport miwcmfe =
                JsonConvert.DeserializeObject <MapInfoWithColorMapForExport>(fContents, settings);

            ColorMap            cm     = ColorMap.GetFromColorMapForExport(miwcmfe.ColorMapForExport);
            MapInfoWithColorMap result = new MapInfoWithColorMap(miwcmfe.MapInfo, cm);

            return(result);
        }