[postgis-tickets] r16885 - Reformat example

Paul Ramsey pramsey at cleverelephant.ca
Fri Oct 12 01:41:35 PDT 2018


Author: pramsey
Date: 2018-10-12 13:41:35 -0700 (Fri, 12 Oct 2018)
New Revision: 16885

Modified:
   trunk/doc/reference_processing.xml
Log:
Reformat example


Modified: trunk/doc/reference_processing.xml
===================================================================
--- trunk/doc/reference_processing.xml	2018-10-12 20:33:09 UTC (rev 16884)
+++ trunk/doc/reference_processing.xml	2018-10-12 20:41:35 UTC (rev 16885)
@@ -3027,17 +3027,19 @@
 		  <refsection>
 			<title>Examples</title>
 			<para>A circle simplified too much becomes a triangle, medium an octagon, </para>
-				<programlisting>
-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
+				<programlisting>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
-
-				</programlisting>
+        49 |                33 |                  17 |           9 |             4 | t
+      </programlisting>
 		  </refsection>
 		  <refsection>
 			<title>See Also</title>



More information about the postgis-tickets mailing list