Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
arlowhite committed Oct 11, 2024
1 parent 47424f9 commit cca95a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/site_assessment/common_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,13 @@ Writes out GeoJSON file to a target directory. Output file will be located at lo
- `destination_path` : File path to write geojson file to.
- `df` : DataFrame intended for writing to geojson file.
"""
function output_geojson(destination_path::String, df::DataFrame; output_crs=EPSG(4326))::Nothing
function output_geojson(
destination_path::String, df::DataFrame; output_crs=EPSG(4326)
)::Nothing
out_df = copy(df)
out_df.geometry = GO.reproject(out_df.geometry, GI.crs(first(out_df.geometry)), output_crs)
out_df.geometry = GO.reproject(
out_df.geometry, GI.crs(first(out_df.geometry)), output_crs
)

GDF.write(destination_path, out_df; crs=GI.crs(first(out_df.geometry)))

Expand Down

0 comments on commit cca95a6

Please sign in to comment.