I tried to create polygons with similar depths based on values from point data.
I got some help to start with in this question Combining points into polygons with range of values using PostGIS
Since the data points is in wgs84 (4326) I set the max_distance
to 0.003 in ST_ClusterDBSCAN(geom, 0.003 , 3)
. The problem is that I get many polygons that overlap each other, first I thought that this was a problem that could be solved by iterating over them and delete the overlap with ST_Difference
. So I wrote a Python script and did this, but then I realized that it was both polygons with high and low depth values that overlapped.
Any idea how I can improve the generation of polygons from the data points or obtain a better result with the polygons that I got?