Skip to content

Commit

Permalink
fix: parse geojson to featcol in generate data extract (#1983)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujanadh authored Dec 12, 2024
1 parent 53dd8a4 commit ae1b964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ async def get_data_extract(
TODO allow config file (YAML/JSON) upload for data extract generation
TODO alternatively, direct to raw-data-api to generate first, then upload
"""
boundary_geojson = json.loads(await geojson_file.read())
boundary_geojson = parse_geojson_file_to_featcol(await geojson_file.read())
clean_boundary_geojson = merge_polygons(boundary_geojson)

# Get extract config file from existing data_models
Expand Down

0 comments on commit ae1b964

Please sign in to comment.