[postgis-devel] ST_Buffer in trunk (1.5)

Paragon Corporation lr at pcorp.us
Tue Jun 23 20:51:46 PDT 2009


Strk,
I created a ticket item for this and put my comments on it. 

-----Original Message-----
From: postgis-devel-bounces at postgis.refractions.net
[mailto:postgis-devel-bounces at postgis.refractions.net] On Behalf Of strk
Sent: Tuesday, June 23, 2009 6:47 PM
To: postgis-devel at postgis.refractions.net
Subject: [postgis-devel] ST_Buffer in trunk (1.5)

As of r4198.

Requires postgis_upgrade.sql or segfaults are around the corner (old SQL
signature points to a now changed C version now interpreting 3rd arg as
cstring rather than numeric).

postgis_upgrade.sql in turn will fail due to those types...
So you'll need to manually drop CREATE TYPE statements from it.

When that's all done, any old code using buffer() should still work fine,
but in addition you should now be able to specify parameters as key=value
pairs separated by space. Supported params:

	endcap=round|flat|square
	join=round|mitre|bevel
	mitre_limit=<float> (only makes sense with join=mitre)
	quad_segs=<int>

Tests welcome. Comments on the naming are also welcome before I move on to
automated testing and documentation.

--strk; 

 Free GIS & Flash consultant/developer      ()  ASCII Ribbon Campaign
 http://foo.keybit.net/~strk/services.html  /\  Keep it simple! 
_______________________________________________
postgis-devel mailing list
postgis-devel at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-devel






More information about the postgis-devel mailing list