Skip to content

Commit b69f5f4

Browse files
authored
NHIRS-54: Change default aggregate output format to GeoJSON (#42)
Co-authored-by: Callum McKenna <[email protected]>
1 parent a230e08 commit b69f5f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hazimp/jobs/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ def __call__(self, context, filename=None, boundaries=None,
735735
fields=None, use_parallel=True):
736736
# Default filename to use when no output filename is specified
737737
if filename is None:
738-
filename = 'output.shp'
738+
filename = 'output.json'
739739

740740
# Defaults fields to use when none are provided to maintain
741741
# backwards compatibility

tests/jobs/test_jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ def test_default_aggregate_filename(self):
772772
instance(context, None, 'boundaries.json', 'MESHBLOCK_CODE_2011', 'MB_CODE11', True, {}, False)
773773

774774
context.save_aggregation.assert_called_once_with(
775-
'output.shp', 'boundaries.json', 'MESHBLOCK_CODE_2011', 'MB_CODE11', True, {}, use_parallel=False
775+
'output.json', 'boundaries.json', 'MESHBLOCK_CODE_2011', 'MB_CODE11', True, {}, use_parallel=False
776776
)
777777

778778
def test_default_aggregate_fields(self):

0 commit comments

Comments
 (0)