Documentation & Knowledge Base

Documentation & Help

Find instructions, guides, and answers to your questions regarding the use of the Gismatrix platform.

Update Column (Bulk Data Management)

The Update Column tool allows you to instantly modify data for hundreds or thousands of map objects at once. Instead of editing records one by one, you can automatically fill columns with specific values, mathematical formulas, or even link data from completely different tables based on their physical location on the map. It works in online and offline modes, making it perfect for fieldwork or office use.

Tip: For rapid spreadsheet-style manual entry and copying values across adjacent cells using the keyboard (Ctrl+↓) or mouse (Ctrl + drag), see Fast Data Entry in the Browser.

1. Context & Supported Data

🔒 Required Permissions

This feature is only available to users who have the Browser / Allow attribute data editing permission enabled in their user settings.

You can update almost any data structure within Gismatrix: tables linked to active map layers, tables without map layers, pure attribute tables, active queries (SQL views), and specific records based on your active map selection. The scope of your update depends strictly on where you launch the tool:

  • From the "Map" Tab: When launched from the map's editing toolbar, the update applies exclusively to the currently selected objects on your active editable layer. If no objects are currently selected on the map, the tool button will be disabled.
  • From the "Browser" Tab: When launched from the data table view, the update applies to everything currently displayed in the table. If you have applied filters or searched for specific records, only those visible rows will be updated.

2. Calculate Modes

Under the Calculate section, you define exactly what data will be written into your target column. You have three modes available:

  • Value: Directly assigns a specific value to your target column.
    • Column: Copies the exact value from a selected source column (useful when joining tables).
    • Constant: Applies a fixed, manually entered value to all updated records.
  • Expression (SQL): Allows you to write custom SQL formulas, combine text, do math, or extract spatial measurements (Area/Length).
  • Count: Counts how many source records match the join condition (e.g., How many trees are inside this park).

Using Spatial Expressions (Area & Length)

One of the most common uses for the Expression mode is automatically calculating the physical size of your map objects. You can do this effortlessly by using built-in spatial functions.

Note: In expressions, your target table is always represented by the letter T, and its geometry is usually stored in the geom column. So you refer to the shape as T.geom.

  • 📐 Calculate Area (Polygons): To update a column with the area of polygons in square meters (if your map uses a metric coordinate system), use the ST_Area() function:
    ST_Area(T.geom)
  • 📏 Calculate Length (Lines): To update a column with the total length of lines or paths in meters, use the ST_Length() function:
    ST_Length(T.geom)
  • 🔢 Advanced: Round to 2 decimal places: Calculates the area and rounds it to two decimal places for cleaner data tables:
    ROUND(ST_Area(T.geom), 2)

3. Join Properties (Linking Data)

Often, the data you want to write into your target column comes from an entirely different table. You can bridge the gap between two tables using the Join properties settings.

  • Column join: Links tables using matching text or ID numbers.
    Example: Copying the 'Owner Name' from a separate owners_table into your map parcels layer where the owner_id perfectly matches.
  • Spatial join: Links tables visually based on their real-world location on the map. It relies on geometric boundaries to determine matches.

Available Spatial Relationships

When using a Spatial Join, you evaluate how the Target table (the one being updated) relates physically to the Source table (the one providing the data). Here are the available relationships:

  • Intersects: Updates target features that touch, cross, or overlap the source features. This is the most general-purpose spatial relationship.
  • Contains: Updates target features that completely contain the source features.
  • Within: Updates target features that are completely within (surrounded by) the source features.
  • Overlaps: Updates target features that partially overlap with the source features, but neither one completely contains the other.
  • Disjoint: Updates target features that are completely separate from and do not touch or overlap the source features in any way.
  • Covers: Updates target features that completely cover the source features. This is similar to Contains but also includes cases where the boundaries touch.
  • Touches: Updates target features that share a boundary (edge or point) with the source features, but their interiors do not overlap.
  • Crosses: Updates target features that pass through the source features. Typically used for line-line or line-polygon relationships.

🛡️ Safety First (Verify & Undo)

  • Verify: Before executing a massive update, always click the Verify button. The system will dry-run your configuration in the background and warn you of any syntax errors without altering any real data.
  • Undo: If you realize you made an error after the update finishes, don't worry! Simply click Undo in the map toolbar. Every single changed value is meticulously tracked, allowing you to instantly and safely revert the entire operation!