st_buffer
How PostGIS runs Buffer: st_buffer.
| Engine | PostGIS |
|---|---|
| Tool name | st_buffer |
| Interface | sql |
| Implements | Buffer |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | Not stated |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
geom | geometry | no | Not stated | Not stated | Not stated |
radius | double precision | no | Not stated | Not stated | Not stated |
options | text | no | ''::text | Not stated | Not stated |
quadsegs | integer | no | Not stated | Not stated | Not stated |
SQL overloads
-
st_buffer(geography, double precision) → geography -
st_buffer(geography, double precision, integer) → geography -
st_buffer(geography, double precision, text) → geography -
st_buffer(geom geometry, radius double precision, options text DEFAULT ''::text) → geometry -
st_buffer(geom geometry, radius double precision, quadsegs integer) → geometry -
st_buffer(text, double precision) → geometry -
st_buffer(text, double precision, integer) → geometry -
st_buffer(text, double precision, text) → geometry
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
layer | geom | Not stated |
distance | radius | Not stated |
unit | Not stated | always crs-units. On geometry, CRS units; on geography, metres. |
dissolve | Not stated | always no. Aggregate with ST_Union. |
segments | quadsegs | Not stated |
Differences from the operation
- On a geometry column the distance is in CRS units (degrees for EPSG:4326); cast to geography for metres.
- Caps and joins go in the options text ('endcap=flat join=mitre').
Harvested by the postgis harvester from engine version
3.7.0. Names can change when an engine is harvested again.