| | |
| | | { |
| | | if (string.IsNullOrWhiteSpace(pyFile)) |
| | | { |
| | | pyFile = Path.Combine(SourcesPath, "render.py"); |
| | | pyFile = Path.Combine(SourcesPath, "MoonExp.py"); |
| | | } |
| | | |
| | | return pyFile; |
| | |
| | | { |
| | | string date = DateStr; |
| | | string sub = GetExportSubFolder(); |
| | | string qgz = "Test.qgz"; |
| | | string qgz = "Moon.qgz"; |
| | | |
| | | args.imgPath = sub + "\\" + date + ".png"; |
| | | args.qpt = date + ".qpt"; |
| | |
| | | public static void CreateTemplate(ExportArgs args) |
| | | { |
| | | string imgPath = Path.Combine(DownloadFolder, args.imgPath); |
| | | string templateFile = Path.Combine(SourcesPath, "Template.qpt"); |
| | | string templateFile = Path.Combine(SourcesPath, "MoonTemplate.qpt"); |
| | | string qptFile = Path.Combine(SourcesPath, args.qpt); |
| | | LogOut.Info("imgPath = " + imgPath + ", tempFile = " + templateFile + ", qptFile = " + qptFile); |
| | | |
| | |
| | | .Replace("{ymin}", args.ymin.ToString()) |
| | | .Replace("{ymax}", args.ymax.ToString()) |
| | | .Replace("{xmax}", args.xmax.ToString()) |
| | | .Replace("{province}", args.province) |
| | | //.Replace("{province}", args.province) |
| | | .Replace("{scale}", args.scale) |
| | | .Replace("{resolution}", args.resolution) |
| | | //.Replace("{resolution}", args.resolution) |
| | | //.Replace("{date}", args.date) |
| | | .Replace("{date}", DateTime.Now.ToString("yyyy.MM.dd")) |
| | | .Replace("{layers}", args.layers) |