Skip to content

Commit

Permalink
Remove st_dump
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation committed Jan 9, 2025
1 parent b4062b8 commit 1fbb2ef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,15 +423,13 @@ async def get_unassigned_geoids(

stmt = text(f"""
SELECT ST_AsGeoJSON(
ST_Dump(
ST_Transform(
ST_Union(
ST_Envelope(
{'COALESCE(parentgeo.geometry, childgeo.geometry)' if districtr_map.child_layer else 'parentgeo.geometry'}
)
),
4326)
)
) as bbox
-- Get all possible parents and children from gerrydb
FROM ( SELECT DISTINCT geo_id
Expand Down

0 comments on commit 1fbb2ef

Please sign in to comment.