Open mosoriob opened 1 year ago
The issue is related to parameters: 0.1 , 0.1
cc: @varunratnakar
I propose using a simpler method
f you have multiple points and you want to enclose them in a polygon, you can use the ST_ConvexHull function in PostGIS. This function creates the minimum convex polygon that contains all the points.
Here's an example of how you can do it:
SELECT ST_ConvexHull(ST_Collect(geom)) AS polygon
FROM your_table;
Replace your_table with the actual name of your table and geom with the name of the column that contains the points.
Explanation of the example:
ST_Collect(geom) groups all the points into a multipoint geometry. ST_ConvexHull creates the minimum convex polygon that encloses the grouped points. The query will return a polygon that represents the minimal boundary containing all the points in your table. You can adjust the query according to your needs, such as adding additional conditions in the WHERE clause to filter the points or including other columns in the SELECT clause.
The dataset has one resource:
The sync_dataset_metadata triggers the function
_update_polygon_point_coverage_ds
. However, the query doesn't workInspecting the issue, the
SELECT
is returning an emptydataset_spatial_coverage
value