agg set error fix

This commit is contained in:
abelvm 2017-01-18 21:40:36 +01:00
parent e03c3eece2
commit d8604f3c9b

View File

@ -114,7 +114,7 @@ DECLARE
d numeric;
BEGIN
dist := 1e999;
pols := array_agg((ST_dump(polygon)).geom);
WITH collection as (SELECT (ST_dump(polygon)).geom as geom) SELECT array_agg(geom) into pols FROM collection;
FOR j in 1..array_length(pols, 1)
LOOP
pol := pols[j];