Skip to content

Commit

Permalink
fix: use convexhull
Browse files Browse the repository at this point in the history
issue #11
  • Loading branch information
mosoriob committed Jun 10, 2023
1 parent 8705ef6 commit 3c7f40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/dcat_service/controllers/update_controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def _update_polygon_point_coverage():
with spatial_coverage as (
select
dataset_id,
ST_union(ST_Simplify(st_buffer(spatial_coverage_index.spatial_coverage, 0.2), 0.2)) as dataset_spatial_coverage
ST_ConvexHull(ST_Collect(spatial_coverage_index.spatial_coverage)) AS dataset_spatial_coverage
from resources
inner join spatial_coverage_index on resources.id = spatial_coverage_index.indexed_id
--and resources.is_queryable is TRUE
Expand Down

0 comments on commit 3c7f40e

Please sign in to comment.