Professional Documents
Culture Documents
1 Manual
215 / 315
Note
This function ignores the third dimension (z) and will always give a 2-d buffer even when presented with a 3d-geometry.
Note
People often make the mistake of using this function to try to do radius searches. Creating a buffer to to a radius search
is slow and pointless. Use ST_DWithin instead.
Examples
quad_segs=8 (default)
SELECT ST_Buffer(
ST_GeomFromText(POINT(100 90)),
50, quad_segs=8);
quad_segs=2 (lame)
SELECT ST_Buffer(
ST_GeomFromText(POINT(100 90)),
50, quad_segs=2);
join=bevel
SELECT ST_Buffer(
ST_GeomFromText(
LINESTRING(50 50,150 150,150 50)
), 10, join=bevel);
endcap=square
SELECT ST_Buffer(
ST_GeomFromText(
LINESTRING(50 50,150 150,150 50)
), 10, endcap=square join=round);