管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-12-23 80580b65be75b0ad876f8d0ca56fc7a64ba11b36
ExportMap/cs/ExportUtil.cs
@@ -202,7 +202,7 @@
            string qptFile = Path.Combine(SourcesPath, args.qpt);
            if (File.Exists(qptFile))
            {
                //File.Delete(qptFile);
                File.Delete(qptFile);
            }
            string imgPath = Path.Combine(DownloadFolder, args.imgPath);
@@ -229,6 +229,7 @@
            xml = xml
                .Replace("{dpi}", args.dpi.ToString())
                .Replace("{title}", args.title)
                .Replace("{sourcesPath}", SourcesPath)
                .Replace("{rotation}", args.rotation.ToString())
                .Replace("{xmin}", args.xmin.ToString())
                .Replace("{ymin}", args.ymin.ToString())
@@ -237,9 +238,9 @@
                .Replace("{province}", args.province)
                .Replace("{scale}", args.scale)
                .Replace("{resolution}", args.resolution)
                .Replace("{date}", args.date)
                //.Replace("{date}", args.date)
                .Replace("{date}", DateTime.Now.ToString("yyyy.MM.dd"))
                .Replace("{layers}", args.layers)
                .Replace("{sourcesPath}", SourcesPath)
                .Replace("{imgPath}", imgPath);
            File.WriteAllText(qptFile, xml);