fixed corner case centroid=PIA

This commit is contained in:
abelvm 2017-03-28 13:02:37 +02:00
parent d8604f3c9b
commit 47251daa5f

View File

@ -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