Skip to content

Commit

Permalink
Merge branch 'geojson_out'
Browse files Browse the repository at this point in the history
  • Loading branch information
pounde committed Apr 25, 2022
2 parents 8eb8121 + e541760 commit 80ebd4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,10 @@ def main():
features.write_output(aoi, vector_out, 'aoi')
features.write_output(centroids, vector_out, 'centroids')

# create geojson
json_out = Path(args.output_directory).joinpath('vector') / 'damage.geojson'
polygons.to_file(json_out, driver='GeoJSON')

if agol_push:
try:
to_agol.agol_helper(args, polygons, aoi, centroids)
Expand Down
1 change: 1 addition & 0 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ class TestIntegration:
('mosaics/damage.tif'),
('mosaics/overlay.tif'),
('vector/damage.gpkg'),
('vector/damage.geojson'),
('log/xv2.log')
])
def test_is_files(self, setup, output_path, file):
Expand Down

0 comments on commit 80ebd4c

Please sign in to comment.