removed spikes
This commit is contained in:
parent
4352d3ded7
commit
ce86c4c5b4
@ -145,16 +145,26 @@ BEGIN
|
||||
SELECT
|
||||
(st_dump(v.g)).geom as g
|
||||
FROM voro_cells v
|
||||
),
|
||||
clipped_voro as(
|
||||
SELECT
|
||||
ST_intersection(c.g, v.g) as g
|
||||
FROM
|
||||
voro_set v,
|
||||
clipper c
|
||||
WHERE
|
||||
ST_GeometryType(v.g) = 'ST_Polygon'
|
||||
)
|
||||
SELECT
|
||||
st_collect(
|
||||
ST_Transform(ST_intersection(c.g, v.g), 4326)
|
||||
ST_Transform(
|
||||
ST_ConvexHull(g),
|
||||
4326
|
||||
)
|
||||
)
|
||||
INTO geomout
|
||||
FROM
|
||||
voro_set v,
|
||||
clipper c
|
||||
WHERE ST_GeometryType(v.g) = 'ST_Polygon';
|
||||
clipped_voro;
|
||||
RETURN geomout;
|
||||
END;
|
||||
$$ language plpgsql IMMUTABLE;
|
||||
|
Loading…
Reference in New Issue
Block a user