mirror of
https://github.com/CartoDB/crankshaft.git
synced 2024-11-01 10:20:48 +08:00
fixed corner case centroid=PIA
This commit is contained in:
parent
d8604f3c9b
commit
47251daa5f
@ -46,6 +46,7 @@ BEGIN
|
||||
SELECT array_agg(c) INTO cells FROM c1;
|
||||
|
||||
-- 1st guess: centroid
|
||||
best_c := polygon;
|
||||
best_d := cdb_crankshaft._Signed_Dist(polygon, ST_Centroid(Polygon));
|
||||
|
||||
-- looping the loop
|
||||
|
Loading…
Reference in New Issue
Block a user