예제 #1
0
        protected void WriteMap(string absoluteFilePath, FeatureInfoMap map)
        {
            SortedDictionary <int, string> features = map.Invert();

            using (StringValueMapBuffer mapBuffer = new StringValueMapBuffer(features))
                using (var fos = File.Open(absoluteFilePath, FileMode.OpenOrCreate))
                {
                    mapBuffer.Write(fos);
                }
        }
        protected void WriteMap(string fileName, FeatureInfoMap map)
        {
            var features = map.Invert();

            var mapBuffer = new StringValueMapBuffer(features);

            using (var fs = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite))
            {
                mapBuffer.Write(fs);
            }
        }