Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion geospatial-utils/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ def main():

# Save to file
output = pathlib.Path(args.output_file)
json_output = json.dumps(ed318_data)
json_output = json.dumps(
ed318_data,
sort_keys=True, # sorting the keys allows the output JSON to be a bit more deterministic, this notably helps some consumers, see https://github.com/focagis/geoawareness-cis/issues/10
)
output.write_text(json_output, encoding="utf-8")
logger.debug(f"Successful conversion. File saved to: {output.absolute()}")

Expand Down