[postgis-devel] [PostGIS] #207: ST_Buffer with style options for partial buffer

PostGIS trac at osgeo.org
Tue Jun 23 20:50:58 PDT 2009


#207: ST_Buffer with style options for partial buffer
--------------------------+-------------------------------------------------
  Reporter:  robe         |       Owner:  pramsey      
      Type:  enhancement  |      Status:  new          
  Priority:  medium       |   Milestone:  postgis 1.5.0
 Component:  postgis      |     Version:  trunk        
Resolution:               |    Keywords:               
--------------------------+-------------------------------------------------
Comment (by robe):

 Strk,
 I noticed you are not using dollar quoting.

 Since we will not have anything less than 8.2, we should try to use the $$
 quoting syntax.  Easier to read. So

 CREATE OR REPLACE FUNCTION ST_buffer(geometry,float8,integer)
         RETURNS geometry
         AS $$
 SELECT _ST_Buffer($1, $2,
                 CAST('quad_segs='||CAST($3 AS text) as cstring))
 $$
         LANGUAGE 'SQL' IMMUTABLE STRICT;

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/207#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list