Skip to content

Commit

Permalink
make jurisdiction geom valid for suggested jurisdictions
Browse files Browse the repository at this point in the history
  • Loading branch information
brennanwebster authored and micheal-w-wells committed Sep 27, 2023
1 parent b5156de commit 830a28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/queries/jurisdiction-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const getJurisdictionsSQL = (searchCriteria: JurisdictionSearchCriteria):
'geometry', public.st_asGeoJSON(j.geog)::jsonb
) as "geojson", COUNT(*) OVER() AS "total_rows_count"
FROM public.jurisdiction j , inputData i
where public.ST_Intersects2(j.geog :: geometry, i.geom);
where public.ST_Intersects2(ST_MakeValid(j.geog :: geometry), i.geom);
`);
}

Expand Down

0 comments on commit 830a28e

Please sign in to comment.