Create Buffer
The Create Buffer module is an advanced geoprocessing wizard designed to generate polygon buffer zones (protective corridors, proximity zones, or inward offsets) of a specified width around selected map features, entire vector layers, or custom spatial query results. Powered by a built-in WebAssembly spatial engine (GEOS/SQLite), it processes large datasets directly on your device and supports saving results both to the cloud and completely offline.
Accessing the Tool & Settings Memory
- Via Map Toolbar: In the selection and spatial analysis tool group, click the Create Buffer icon
(
) to open the interactive configuration dialog (available from both the Map and Browser contexts). - Instant Context Help: Press F1 (or Command + ? on macOS) or click the Help button in the dialog's bottom bar at any time to open this exact guide.
- Automatic Settings Persistence: Your preferred parameters (distance mode, smoothness segments, end cap and join styles, buffer mode, and column mappings) are automatically remembered on your device for future sessions.
Dialog Properties
Source & Distance Settings
- Source Table / Layer: Choose the spatial dataset you want to buffer. Supported sources include any open
vector map layer, the Cosmetic layer, the Topology layer, and custom spatial SQL Views
created in the Browser (including complex multi-table joins and aggregated
GROUP BYqueries):- Automatic Priority for Active Map Selections: Whenever you have features selected on the map (including objects on the Cosmetic or Topology layers), opening Create Buffer always automatically sets the active map selection as the source, displayed as Selection (N) - [Layer Name] (where N shows the exact total count of loaded and virtually selected objects), and matches the default distance unit to that layer's projection. If you want to buffer the entire layer instead, simply switch to the full layer name in the dropdown list.
- Last-Used Layer Memory When Nothing Is Selected: When no objects are currently selected on the map, the tool conveniently restores your last used source table and its saved attribute mappings from your previous session.
- Distance Mode: Use the mode selector bar to define how the buffer width is calculated:
- Fixed Value: Applies a uniform, constant buffer distance to all source features (e.g.,
10). For polygon layers, you can also enter a negative value (e.g.,-5) to create an inward buffer (shrinking the polygon boundary inward). - Column Name: Dynamically calculates an individual buffer width for each feature from a numeric
column in the source table (the dropdown automatically filters for numeric data types such as
Integer,Numeric,Double, etc.). - Expression (SQL): Dynamically computes the buffer width per feature using any custom numeric SQL
formula in the built-in code editor (for example,
CASE WHEN road_class = 'HWY' THEN 40 ELSE 15 ENDorSQRT(ST_Area(geom)) * 0.1). The SQL toolbar provides autocomplete hints for columns (always including the source geometry columngeomat the top forST_*spatial functions), operators, and functions, code formatting, and a Verify button that tests both SQL syntax and whether the expression evaluates to a numeric value. Both single-line (--) and multi-line (/* ... */) SQL comments are fully supported.
- Fixed Value: Applies a uniform, constant buffer distance to all source features (e.g.,
- Distance Units: Select the unit of measurement for your buffer distance (Meters, Kilometers, Centimeters,
Millimeters, Feet, US Survey Feet, Yards, Miles, Nautical Miles, or Degrees). The system automatically selects a
default unit matching the coordinate reference system (projection) of the active source layer.
Automatic Reprojection & Unit Conversion Note: If your source layer uses geographic degrees (such as WGS84EPSG:4326) and you choose a linear distance unit (such as Meters or Feet), Gismatrix automatically reprojects the geometry into a metric coordinate system (EPSG:3857) in the background to compute an accurate metric buffer, and then transforms the resulting polygons into the target layer's coordinate system.
Advanced Shape Configurations
- Smoothness (Segments): Sets the number of line segments used to approximate a quarter circle along curved
buffer edges (from
1to32; default is8). Higher values produce smoother curves, while lower values create simpler polygons with fewer vertices and lower memory usage. - End Cap Style: Controls how buffer zones terminate at the endpoints of line features:
- Round: Extends a semicircular cap past each line endpoint (default; automatically enforced for point geometries).
- Flat: Terminates flush and perpendicular at the exact line endpoint without extending past it.
- Square: Extends a flat-ended rectangular cap past each line endpoint by the full buffer distance.
- Join Style: Determines how exterior corners at line bends and polygon vertices are shaped (Round, Mitre for sharp pointed corners, or Bevel for flattened angled corners).
- Buffer Side: Generates either a standard two-sided buffer (Both) or a single-sided buffer strictly on the Left or Right side of a line feature relative to its drawing (digitization) direction (you can reverse line orientation beforehand using the Change Line Direction tool if needed).
For visual examples illustrating how quad_segs, endcap, join, and side shape the output geometry, see the official PostGIS documentation for ST_Buffer.
Processing Mode & Destination Target
- Buffer Mode: Controls the spatial structure of the generated records:
- Individual (A buffer for each object separately): Generates an independent buffer polygon for every source feature (neighboring buffers may overlap).
- Aggregate (One combined buffer for all objects): Automatically merges and dissolves
(
ST_Union) all generated buffer zones into a single unified polygon or multipolygon.
Advanced Tip (Variable-Distance Buffer with Dissolve): Combine Aggregate mode with a Column Name or Expression (SQL) distance to compute custom corridor widths per feature first (e.g., 100 m for highways and 20 m for local streets) and then dissolve all varying zones into one seamless boundary.
- Destination Target: Once processing finishes, all newly created buffer features are automatically
selected on the map, thematic styles, labels, and TOC legends refresh immediately, and the Info window
updates to display the results:
- Existing Editable Layer: Available whenever an editable vector layer is active on your map.
Before running, Gismatrix checks whether the target layer's configuration permits polygon
geometries (prompting for confirmation if the layer only allows points or lines) and
automatically applies any configured Default Column Values on the target layer for unmapped
fields. This mode is fully integrated with 10-step Undo, allowing you to revert all added buffers
with a single click.
Offline Capability: Saving buffers into an existing editable layer runs 100% locally on your device via WebAssembly without requiring an internet connection, and synchronizes changes automatically once you are back online. - Create New Table: Initializes a brand-new spatial cloud table, automatically sanitizes and
ensures a unique table name, and adds the new vector layer directly to your active Workspace.
Note: An active internet connection is required for this option to register the new table structure in the cloud database.
- Existing Editable Layer: Available whenever an editable vector layer is active on your map.
Before running, Gismatrix checks whether the target layer's configuration permits polygon
geometries (prompting for confirmation if the layer only allows points or lines) and
automatically applies any configured Default Column Values on the target layer for unmapped
fields. This mode is fully integrated with 10-step Undo, allowing you to revert all added buffers
with a single click.
Attribute Mapping
Configure how descriptive attributes are copied, calculated, or assigned to the destination table (internal system and geometry fields are automatically excluded to protect table integrity):
- Auto Mapping & Clearing: Click Auto Mapping to automatically populate only the remaining unmapped target columns based on matching column names and compatible data types (preserving your existing manual rows), or click Clear Mapping to remove all rows (if left empty, buffers are created with geometry and target layer defaults only).
- Saving to an Existing Editable Layer: Select target columns from a restricted dropdown list of the editable layer's fields while the system validates type and format compatibility in real time.
- Creating a New Table: Type custom Target Column names (up to 30 characters, automatically formatted to safe lowercase SQL identifiers and checked against duplicates or reserved system names), choose the Data Type (Varchar, Smallint, Integer, Long, Numeric, Single, Double, Boolean, Date, Time, or DateTime), and define Length/Precision and Scale (decimal places). Picking a source column automatically pre-fills matching schema settings.
- Mapping Types & Aggregation: In Individual mode, populate each target column from a Source
Column or a constant Fixed Value. In Aggregate mode, an Aggregation selector
appears
with SUM, AVG, MIN, MAX, COUNT, and FIRST (First Row), strictly
verifying numeric compatibility for mathematical aggregations such as
SUM,AVG, andCOUNT.
Fault Tolerance, Progress Tracking & Cancellation
Large datasets and SQL Views are processed in memory-safe chunks with a live percentage progress indicator while automatically isolating any invalid or corrupted source geometries so a single bad shape never halts the entire batch. You can safely cancel the operation at any time via the Abort button (or the Back button confirmation) without corrupting your source or target data.