[postgis-tickets] r14459 - Document ST_Simplify parameter (#2093)

Paul Ramsey pramsey at cleverelephant.ca
Mon Nov 30 09:54:09 PST 2015


Author: pramsey
Date: 2015-11-30 09:54:09 -0800 (Mon, 30 Nov 2015)
New Revision: 14459

Modified:
   trunk/doc/reference_processing.xml
Log:
Document ST_Simplify parameter (#2093)


Modified: trunk/doc/reference_processing.xml
===================================================================
--- trunk/doc/reference_processing.xml	2015-11-30 17:53:53 UTC (rev 14458)
+++ trunk/doc/reference_processing.xml	2015-11-30 17:54:09 UTC (rev 14459)
@@ -2689,6 +2689,7 @@
 			<funcdef>geometry <function>ST_Simplify</function></funcdef>
 			<paramdef><type>geometry</type> <parameter>geomA</parameter></paramdef>
 			<paramdef><type>float</type> <parameter>tolerance</parameter></paramdef>
+			<paramdef><type>boolean</type> <parameter>preserveCollapsed</parameter></paramdef>
 		  </funcprototype>
 		</funcsynopsis>
 	  </refsynopsisdiv>
@@ -2701,6 +2702,12 @@
 				any kind of geometry. Since simplification occurs on a
 				object-by-object basis you can also feed a GeometryCollection to
 				this function.</para>
+        
+    <para>The "preserve collapsed" flag will retain objects that would otherwise
+      be too small given the tolerance. For example, a 1m long line simplified with a 10m 
+      tolerance. If the preserve flag is given, the line will not disappear. This flag
+      is useful for rendering engines, to avoid having large numbers of very
+      small objects disappear from a map leaving surprising gaps.</para>
 
 		<note><para>Note that returned geometry might lose its
 				simplicity (see <xref linkend="ST_IsSimple" />)</para></note>



More information about the postgis-tickets mailing list