[postgis-tickets] r14681 - Added parameters for geography buffering from @tbonfort

Paul Ramsey pramsey at cleverelephant.ca
Wed Feb 24 07:59:10 PST 2016


Author: pramsey
Date: 2016-02-24 07:59:10 -0800 (Wed, 24 Feb 2016)
New Revision: 14681

Modified:
   trunk/doc/reference_processing.xml
   trunk/postgis/geography.sql.in
Log:
Added parameters for geography buffering from @tbonfort
https://github.com/postgis/postgis/pull/11


Modified: trunk/doc/reference_processing.xml
===================================================================
--- trunk/doc/reference_processing.xml	2016-02-24 15:19:04 UTC (rev 14680)
+++ trunk/doc/reference_processing.xml	2016-02-24 15:59:10 UTC (rev 14681)
@@ -39,7 +39,21 @@
 					<paramdef><type>geography </type> <parameter>g1</parameter></paramdef>
 					<paramdef><type>float </type> <parameter>radius_of_buffer_in_meters</parameter></paramdef>
 				  </funcprototype>
+              
+              <funcprototype>
+					<funcdef>geography <function>ST_Buffer</function></funcdef>
+					<paramdef><type>geography </type> <parameter>g1</parameter></paramdef>
+					<paramdef><type>float </type> <parameter>radius_of_buffer</parameter></paramdef>
+					<paramdef><type>integer </type> <parameter>num_seg_quarter_circle</parameter></paramdef>
+				  </funcprototype>
 
+				  <funcprototype>
+					<funcdef>geography <function>ST_Buffer</function></funcdef>
+					<paramdef><type>geography </type> <parameter>g1</parameter></paramdef>
+					<paramdef><type>float </type> <parameter>radius_of_buffer</parameter></paramdef>
+					<paramdef><type>text </type> <parameter>buffer_style_parameters</parameter></paramdef>
+				  </funcprototype>
+
 				</funcsynopsis>
 			</refsynopsisdiv>
 

Modified: trunk/postgis/geography.sql.in
===================================================================
--- trunk/postgis/geography.sql.in	2016-02-24 15:19:04 UTC (rev 14680)
+++ trunk/postgis/geography.sql.in	2016-02-24 15:59:10 UTC (rev 14681)
@@ -742,6 +742,18 @@
 	AS 'SELECT geography(ST_Transform(ST_Buffer(ST_Transform(geometry($1), _ST_BestSRID($1)), $2), 4326))'
 	LANGUAGE 'sql' IMMUTABLE STRICT;
 
+-- Availability: 2.1.x
+CREATE OR REPLACE FUNCTION ST_Buffer(geography, float8, integer)
+	RETURNS geography
+	AS 'SELECT geography(ST_Transform(ST_Buffer(ST_Transform(geometry($1), _ST_BestSRID($1)), $2, $3), 4326))'
+	LANGUAGE 'sql' IMMUTABLE STRICT;
+
+-- Availability: 2.1.x
+CREATE OR REPLACE FUNCTION ST_Buffer(geography, float8, cstring)
+	RETURNS geography
+	AS 'SELECT geography(ST_Transform(ST_Buffer(ST_Transform(geometry($1), _ST_BestSRID($1)), $2, $3), 4326))'
+	LANGUAGE 'sql' IMMUTABLE STRICT;
+
 -- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
 CREATE OR REPLACE FUNCTION ST_Buffer(text, float8)
 	RETURNS geometry AS



More information about the postgis-tickets mailing list