From: Paul Ramsey Date: Fri, 12 Oct 2018 20:41:35 +0000 (+0000) Subject: Reformat example X-Git-Tag: 3.0.0alpha1~360 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=338b7be125f5384a274a4476573f239ef4eebe4a;p=postgis Reformat example git-svn-id: http://svn.osgeo.org/postgis/trunk@16885 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_processing.xml b/doc/reference_processing.xml index 795c6928f..fd6828e35 100644 --- a/doc/reference_processing.xml +++ b/doc/reference_processing.xml @@ -3027,17 +3027,19 @@ select ST_WrapX(the_geom, -30, 360); Examples A circle simplified too much becomes a triangle, medium an octagon, - -SELECT ST_Npoints(the_geom) As np_before, ST_NPoints(ST_Simplify(the_geom,0.1)) As np01_notbadcircle, ST_NPoints(ST_Simplify(the_geom,0.5)) As np05_notquitecircle, -ST_NPoints(ST_Simplify(the_geom,1)) As np1_octagon, ST_NPoints(ST_Simplify(the_geom,10)) As np10_triangle, -(ST_Simplify(the_geom,100) is null) As np100_geometrygoesaway -FROM (SELECT ST_Buffer('POINT(1 3)', 10,12) As the_geom) As foo; --result + SELECT ST_Npoints(the_geom) AS np_before, + ST_NPoints(ST_Simplify(the_geom,0.1)) AS np01_notbadcircle, + ST_NPoints(ST_Simplify(the_geom,0.5)) AS np05_notquitecircle, + ST_NPoints(ST_Simplify(the_geom,1)) AS np1_octagon, + ST_NPoints(ST_Simplify(the_geom,10)) AS np10_triangle, + (ST_Simplify(the_geom,100) is null) AS np100_geometrygoesaway + FROM + (SELECT ST_Buffer('POINT(1 3)', 10,12) As the_geom) AS foo; + np_before | np01_notbadcircle | np05_notquitecircle | np1_octagon | np10_triangle | np100_geometrygoesaway -----------+-------------------+---------------------+-------------+---------------+------------------------ - 49 | 33 | 17 | 9 | 4 | t - - + 49 | 33 | 17 | 9 | 4 | t + See Also