Skip to content

Commit

Permalink
Don't indent geojsons to minimize changes in format
Browse files Browse the repository at this point in the history
  • Loading branch information
dmannarino committed Dec 11, 2024
1 parent 0f920e3 commit 6862049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions batch/python/apply_colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ def apply_symbology(
tiles_fc, extent_fc = generate_geojsons(tile_paths, min(16, NUM_PROCESSES))
logger.log(logging.INFO, "Finished generating geojsons")

tiles_txt = json.dumps(tiles_fc, indent=2)
tiles_txt = json.dumps(tiles_fc)
with open(tiles_output_file, "w") as f:
print(tiles_txt, file=f)

extent_txt = json.dumps(extent_fc, indent=2)
extent_txt = json.dumps(extent_fc)
with open(extent_output_file, "w") as f:
print(extent_txt, file=f)

Expand Down
4 changes: 2 additions & 2 deletions batch/python/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,11 +672,11 @@ def resample(
tiles_fc, extent_fc = generate_geojsons(tile_paths, min(16, NUM_PROCESSES))
logger.log(logging.INFO, "Finished generating geojsons")

tiles_txt = json.dumps(tiles_fc, indent=2)
tiles_txt = json.dumps(tiles_fc)
with open(tiles_output_file, "w") as f:
print(tiles_txt, file=f)

extent_txt = json.dumps(extent_fc, indent=2)
extent_txt = json.dumps(extent_fc)
with open(extent_output_file, "w") as f:
print(extent_txt, file=f)

Expand Down

0 comments on commit 6862049

Please sign in to comment.