<div class="gmail_quote">Is anyone looking at adding the ability for st_buffer to keep Z coordinates as well for 3-dimensional spaces?  If so, I'd like to help.<br><br>The Postgis 2.0 docs state:  <span style="background-color:rgb(228,247,221);color:rgb(46,46,46);font-family:'Lucida Grande',Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:13px;text-align:-webkit-left">This function ignores the third dimension (z) and will always give a 2-d buffer even when presented with a 3d-geometry.</span><br>

<br>Right now <br><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<span><div>select st_astext(st_buffer(geomfromEWKT('POINT(0 0 0)'),1));</div>


</span></blockquote><br>Generates a flat Polygon/Circle of radius 1 (completely dropping the z dimension):<br><br> POLYGON((1 0,0.980785280403231 -0.195090322016128,0.923879532511287 -0.382683432365089,0.831469612302546 -0.555570233019602,0.707106781186548 -0.707106781186547,0.555570233019603 -0.831469612302545,0.382683432365091 -0.923879532511286,0.19509032201613 -0.98078528040323,1.61554255216634e-15 -1,-0.195090322016126 -0.980785280403231,-0.382683432365088 -0.923879532511288,-0.555570233019601 -0.831469612302546,-0.707106781186546 -0.707106781186549,-0.831469612302544 -0.555570233019604,-0.923879532511286 -0.382683432365092,-0.98078528040323 -0.195090322016131,-1 -3.23108510433268e-15,-0.980785280403231 0.195090322016125,-0.923879532511288<br>

 0.382683432365086,-0.831469612302547 0.555570233019599,-0.70710678118655 0.707106781186545,-0.555570233019606 0.831469612302543,-0.382683432365094 0.923879532511285,-0.195090322016132 0.98078528040323,-3.73640463187386e-15 1,0.195090322016125 0.980785280403231,0.382683432365087 0.923879532511288,0.5555702330196 0.831469612302547,0.707106781186545 0.70710678118655,0.831469612302544 0.555570233019604,0.923879532511286 0.382683432365092,0.98078528040323 0.19509032201613,1 0))<br>

<br>Whereas, if it had z support it should actually generate a Polyhedral Surface/Sphere of radius 1 centered on (0 0 0)<font color="#888888"><br></font></div><div class="gmail_quote"><br></div><div class="gmail_quote"> - Sam</div>

<div class="gmail_quote"><br></div>