From a0b17c2397fb3746231c1aa0ee7e0b947457a3c5 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Fri, 3 Aug 2018 10:34:17 +1000 Subject: [PATCH] Restore export to jpg (removed in previous commit) --- plot_heatmaps.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plot_heatmaps.py b/plot_heatmaps.py index 6258ec8..4b0ddcb 100644 --- a/plot_heatmaps.py +++ b/plot_heatmaps.py @@ -119,7 +119,11 @@ def process(yaml_name): # Export beaches that are covered by current survey if ddp.pageRow.Parent == beach.lower(): page_name = ddp.pageRow.Beach - jpg_name = os.path.join(output_jpg_dir, page_name + '.jpg') + for output_dir in output_dirs: + jpg_name = os.path.join(output_dir, page_name + '.jpg') + # Export to jpg + arcpy.mapping.ExportToJPEG( + mxd, jpg_name, resolution=200, jpeg_quality=80) def main():