Commit 343bd459 authored by Paul Ramsey's avatar Paul Ramsey

add a test using ST_MaximumInscribedCircle on the target list

parent b5bd6836
......@@ -26,3 +26,9 @@ SELECT 'mic-point' AS name, st_astext(center) AS center,
st_astext(nearest) AS nearest,
round(radius::numeric,4) AS radius
FROM ST_MaximumInscribedCircle('POINT(0 0)'::geometry);
WITH p AS (
SELECT 'Polygon((0 0, 100 0, 100 100, 0 100, 0 0))'::geometry AS ply
)
SELECT 'mic-cte' AS name, ST_AsText((ST_MaximumInscribedCircle(ply)).center)
FROM p;
......@@ -4,3 +4,4 @@ mic-null|||
mic-line|POINT(50 50)|POINT(50 0)|50.0000
mic-mpoint|POINT(50 50)|POINT(0 0)|70.7107
mic-point|POINT(0 0)|POINT(0 0)|0.0000
mic-cte|POINT(50 50)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment