Documentation & Knowledge Base

Documentation & Help

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

Create table from...

The Create table from module is a powerful tool designed to generate a completely new physical database table by copying the structural schema (attributes, spatial constraints) and optionally the underlying data from an existing source using high-speed local transactions.

Usage via Layer Control

You can access this tool directly from the map's Layer Control menu. By opening the layer options menu (three dots in the top-right corner) and selecting Create table from (), a dialog appears allowing you to configure the new table. In this mode, you can select any existing base table or your currently active map selection as the source. This is highly useful when you want to turn a specific set of selected features into a permanent, independent layer that you can edit and style separately.

Create table from...

The image illustrates the Create table from... dialog, where the current map selection is used as the source. Since the Add layer to workspace option is checked, the system will automatically add the newly created table to your current map as a visible vector layer.

Workflow steps from the map:

  1. Select the desired features on the map using the selection tools.
  2. Click the main menu in the top-left corner to open the Layer Control.
  3. Open the three-dot options menu in the top-right corner of the Layer Control panel.
  4. Select the Create table from... () tool to open the dialog shown above.

Additional options and adjustments:

  • To create a complete copy of an existing table, no prior map selection is required. Simply select any existing base table from the Source table dropdown.
  • The With data (copy data) option ensures all geometric and attribute records are transferred. If you want to create an empty table with an identical structural schema but without the actual records, simply uncheck this option.

Usage via Attribute Browser

This functionality is also directly integrated into the Browser. Clicking the red Add layer to map from... () button in the Browser toolbar opens this dialog in a streamlined mode titled Add layer to map from...:

  • Instantly materialize filtered tabs or dynamic SQL views (typically named query...) into a permanent, independent physical table—choosing between All displayed data in the active tab or specifically Selected data (the rows checked in the data grid, displaying the exact selection count).
  • In this mode, copying records (With data) and placing the resulting layer onto the map (Add layer to workspace) are automatically enabled (and hidden to simplify the workflow), while the name field adapts to New layer name.
Smart Geometry & Style Recovery for SQL Views:
If you use an SQL view of a spatial base table where your SELECT statement only listed specific attribute columns and omitted the geometry column (geom) or style column (mi_style)—as long as the row identifier __id__ is preserved (which Gismatrix injects automatically for standard queries)—Gismatrix automatically joins back to the base table behind the scenes and recovers both the feature geometries and MapInfo styles when creating the new table!

Dialog Properties

  • Source table / Source: Defines the origin of the schema and data (base table, map selection, all displayed browser data, or selected browser data).
  • New table name / New layer name: Enter a unique, database-safe name (up to 30 characters). The system automatically suggests a valid name (e.g., appending _copy to the source name).
  • Personal Use: If set to Yes, the newly created table will be entirely private to your user account and invisible to others.
  • Read-only: If set to Yes, the new table will be locked against editing upon creation.
  • With data: (Displayed when opened from Layer Control) When checked (default), transfers all geometric and attribute records from the source into the new table (with live percentage progress and an Abort button). If unchecked, only an empty table structure is created.
  • Add layer to workspace: (Displayed when opened from Layer Control; enabled for spatial sources) When checked, automatically adds the newly created spatial table to your current map workspace as a visible vector layer.

Integration with "Add Vector Layer"

To streamline your workflow, the core capabilities of the Create table from module are seamlessly embedded directly within the Add Vector Layer dialog.

When you open the Add Vector Layer window, your active map selection (pinned at the top with a pin icon) and any dynamic browser queries (with a copy icon) are listed alongside standard local and remote tables. Selecting one of these virtual sources and clicking Add automatically executes the "Create table from" pipeline in the background—creating the physical table, copying the data locally, and placing the new layer on your map in a single step.