Skip to content

Commit

Permalink
Merge branch 'develop' into toplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
davidorme authored Jul 29, 2022
2 parents a52e613 + d0e7a2c commit f88564b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions virtual_rainforest/core/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ def cell_to_feature(cell_tuple: tuple) -> dict:
return {"type": "Feature", "geometry": geom, "properties": props}

def export_geojson(self, outfile: str):
"""Export grid system as geojson file.
Args:
outfile: A self.cell_dict returned by a make_square_grid
or make_hex_grid call.
"""

# Open a collection for writing.
with fiona.open(
Expand Down

0 comments on commit f88564b

Please sign in to comment.