Restore export to jpg (removed in previous commit)

etta-drone
Dan Howe 6 years ago
parent 9f8165756f
commit a0b17c2397

@ -119,7 +119,11 @@ def process(yaml_name):
# Export beaches that are covered by current survey # Export beaches that are covered by current survey
if ddp.pageRow.Parent == beach.lower(): if ddp.pageRow.Parent == beach.lower():
page_name = ddp.pageRow.Beach 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(): def main():

Loading…
Cancel
Save