[postgis-devel] ST_Buffer in trunk (1.5)

strk strk at keybit.net
Tue Jun 23 15:47:23 PDT 2009


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! 



More information about the postgis-devel mailing list