Added support for postprocess rules to read_mosaic_map_dict() and write_mosaic_map_file()
This commit is contained in:
parent
18b6bee0a0
commit
693858b383
|
|
@ -124,6 +124,7 @@ class AFCMUniverseMapFile:
|
|||
self.mosaic_head = map_dict.get('mosaic', {})
|
||||
self.metadata = map_dict.get('metadata', {})
|
||||
self.mosaic_file_list = map_dict.get('files', {})
|
||||
self.mosaic_postprocess = map_dict.get('postprocess', {})
|
||||
|
||||
return None
|
||||
|
||||
|
|
@ -138,7 +139,8 @@ class AFCMUniverseMapFile:
|
|||
|
||||
output_object = json.dumps({"mosaic": self.mosaic_head,
|
||||
"metadata": self.metadata,
|
||||
"files": self.mosaic_file_list}, indent=4)
|
||||
"files": self.mosaic_file_list,
|
||||
"postprocess": self.mosaic_postprocess}, indent=4)
|
||||
|
||||
with open(filename, 'w', encoding="UTF-8") as outfile:
|
||||
outfile.write(output_object)
|
||||
|
|
|
|||
Loading…
Reference in New Issue