[postgis-devel] Specifying end cap and join styles Buffer op

strk strk at keybit.net
Sun Jun 21 15:11:33 PDT 2009


On Sun, Jun 21, 2009 at 11:02:37PM +0100, Mark Cave-Ayland wrote:

> String parsing seems quite horrible in this day and age; any reason we 
> can't use PostgreSQL arrays to pass in the information instead? I really 
> don't care too much about Oracle compatibility since PostGIS as a 
> project is heading more towards SQL-MM.

Paul and me excercised a bit in inputing SQL and found arrays
being less comfortable than a plain string.

Compare:

	st_buffer(geom, 10, 'join=bevel endcap=flat limit=10');
with:
	st_buffer(geom, 10, '{{"join", bevel"},{"endcap","flat"},{"limit","10"}}');

(pretty sure the first one I typed it correctly, should check for the second)

--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