Export Data
The Export Data tool allows you to extract attribute tables and vector layers from Gismatrix into various standard spatial and tabular data formats. You can export entire layers, only the currently selected features, or constrain the data to the current map extent.
General Export Options & Templates
In addition to format-specific configurations, the following options are globally available across most export types:
- Template Management: You can save your export settings (selected layers, active columns, coordinate transformations, and formats) as reusable templates. Templates can be private or shared with team members.
- Target Coordinate System (EPSG): Projects exported spatial features on-the-fly into a specified coordinate system (e.g., reprojecting from EPSG:3794 to EPSG:4326 or EPSG:3857). Formats such as KML and GPX strictly enforce WGS84 (EPSG:4326).
- Geometry Layout (Force 2D): Flattens Z or M dimensions, ensuring all output features exclusively contain X and Y coordinates to comply with strict 2D OGC standards.
- Encoding: Defines the character encoding for text attributes (e.g., UTF-8, Windows-1250) to guarantee proper character rendering in third-party software.
- Skip Errors: Continues the export process by skipping individual invalid geometries or conversion failures instead of aborting the whole task.
- Export Selection vs. All Features: Configure per table whether to export all rows or only the features currently highlighted/selected on the map.
Export Historical Table Versions
Gismatrix introduces a powerful temporal capability allowing you to export table snapshots exactly as they existed at any given point in time in the past. This functionality is supported for all layers and tables with version tracking enabled.
- Version Column in Table Grid: In the export setup grid, the Version column displays the active temporal target for each table (defaulting to "Current Version").
- Date Selection Dialog: Double-clicking a cell in the Version column opens the historical timestamp selection interface.
- Cascading Hierarchy (Year → Month → Exact Datetime): The system dynamically retrieves all recorded modification timestamps from the database and guides you through a three-level cascade: Year, Month, and Exact Datetime (UTC).
- Smart Schema Reconciliation: When extracting historical data, the backend automatically intersects
attribute columns between the live table and its corresponding history table (
_history). Only columns that safely exist across both schemas are extracted, preventing crashes caused by database migration changes. - Temporal Filtering: The database extracts features active at the selected timestamp (records created on or before that timestamp and not yet deleted).
- Full Spatial Capability: Historical exports fully retain SRS reprojection (EPSG), spatial filtering, CAD/GIS conversion drivers, and label expression generators.
Column Customization, Selection Scope & Metadata Fields
Double-clicking a cell in the Columns (or Export selection) column opens the per-table Options dialog, allowing you to configure record scope, filter exported columns, and append system metadata fields:
- Export Selected Objects Only: (Available for spatial tables) When checked, exports exclusively the features currently selected on the map for this table; when unchecked, all table records (or features within the drawn export extent) are exported.
- Attribute Column Selection: Use the checkboxes in the Column name grid to toggle individual table columns on or off (use the header checkbox to select or deselect all columns at once; at least one column must remain selected).
- Creation & Audit Info: Includes
updated(timestamp of last change) andupdated_by(user who modified the record). For historical exports, these automatically map tocreatedandcreated_byfrom history records. - Insert UUID: Includes the system
insert_uuidfield. - Record Version (__ver__): Includes the internal record version counter.
- Symbology Field: (Spatial tables only) Includes feature styling definitions
(
mi_style) for spatial objects.
AutoCAD DXF
AutoCAD DXF is a standard CAD interchange format. Gismatrix supports writing DXF files compatible with AutoCAD 2004 and newer. Selecting multiple tables will automatically merge them into a single multi-layered DXF drawing.
- Point features with LABEL styling are written as
MTEXTentities. - Point features without LABEL styling are written as
POINTentities. - Line features are written as
LWPOLYLINEorPOLYLINE(if Z elevation is specified). - Polygon features are written as
HATCHentities. - Z-Field Support: Specify a numeric attribute column to generate 3D elevation extrusion values.
- Convert Regions to Polylines: Polygon boundaries are exported as closed line strings instead of filled hatch areas.
Anchor Point
A numeric value from 1 to 12 defining text label placement relative to the feature's reference point:
Label Expression
Construct dynamic text labels for DXF/DGN outputs using SQL concatenation expressions (PostgreSQL/PostGIS syntax).
"Code" || ' - ' || "Country" || Chr(10) || ST_Area(geom)
Combining text ("MATERIAL") and numeric ("FI") fields using type casting:
"MATERIAL" || ' ' || CAST("FI" as varchar)
Lowercase field names do not require quotes. Chr(10) inserts a new line.
MicroStation DGN
MicroStation DGN (v8) is a standard CAD format natively supported by Bentley MicroStation. Similar to DXF, DGN exports support multi-layered outputs. Label expressions, anchor points, X/Y offsets, font sizes, Z-coordinates, and region-to-polyline conversions are fully supported.
ESRI Shapefile (SHP)
ESRI Shapefiles strictly support one geometry type per file. When exporting layers containing mixed geometry types,
Gismatrix automatically splits the output into separate files suffixed with _points.shp,
_lines.shp, and _polygons.shp.
Legacy .dbf attribute table limits:
- Column Names: Strictly limited to 10 characters. Longer names are automatically truncated with unique numeric suffixes.
- Field Types: Limited to Integer, Integer64, Real, String, and Date.
- String Width: Unbounded text fields are truncated to 80 characters by default.
- File Size Limit: Maximum supported file component size is 4 GB.
ESRI File Geodatabase (GDB)
ESRI File Geodatabase (OpenFileGDB) is a modern spatial format. Because File Geodatabases require a single geometry
type per Feature Class, Gismatrix automatically splits outputs into distinct _point,
_line, and _polygon feature classes inside the `.gdb` folder.
MapInfo (TAB / MIF)
MapInfo datasets are supported in native binary (TAB) or interchange (MIF/MID) format.
- Toggle between TAB and MIF in the file format dropdown.
- String fields are capped at 254 characters.
- Manual Bounds: Optionally define custom geographic bounding coordinates (xmin, ymin, xmax, ymax) for MapInfo exports.
CSV File
CSV is a non-spatial tabular format, but Gismatrix provides options to extract and embed spatial coordinates directly into standard columns.
- Field Separator: Comma, Semicolon, Tab, Space, CR/LF, LF, or Pipe (|).
- Decimal Separator: Dot (.) or Comma (,). Choosing a comma automatically formats numeric fields with commas for seamless compatibility with localized MS Excel versions.
- Include BOM: Adds a Byte Order Mark to UTF-8 files to ensure proper encoding recognition when opened directly in Microsoft Excel.
CSV Geometry Output Types
- NONE: Tabular attribute data only.
- WKT: Appends a column containing Well-Known Text geometry representations.
- GeoJSON: Appends a column containing GeoJSON geometry strings.
- XY / XYZ / XYM / XYZM: Extracts coordinate dimensions into discrete X, Y, and Z columns. Centroids are automatically computed for polylines and polygons.
GeoPackage (GPKG)
GeoPackage is an open SQLite-based OGC standard. It is highly recommended over Shapefiles because it has no file size limits or column name length restrictions and natively supports modern spatial reference systems.
GeoJSON
GeoJSON is a lightweight text interchange format based on JavaScript Object Notation (JSON).
RFC 7946 vs. GeoJSON 2008
- GeoJSON 2008 (Default): Retains the layer's source coordinate reference system.
- RFC 7946: Strictly enforces the WGS84 (EPSG:4326) datum with automatic reprojection, applies the right-hand rule for polygon orientation, and formats bounding box arrays.
Google Earth (KML)
KML (Keyhole Markup Language) is an XML format for 3D geospatial visualization. Gismatrix automatically projects all exported data into EPSG:4326 (WGS84) to satisfy strict KML specifications.
GPS Exchange Format (GPX)
GPX is an XML schema designed for GPS data exchange. All coordinates are automatically reprojected to EPSG:4326 (WGS84).
- Feature Types: Force exported features as Tracks, Routes, or Waypoints. Polygons and lines are automatically converted to line tracks or point centroids.
- Include All Attributes: Setting this to YES embeds custom attribute columns inside the
<extensions>XML tag.
Spreadsheets & Tabular Formats (XLSX, ODS, DBF)
Allows direct export of attribute tables into Microsoft Excel (XLSX), OpenDocument Spreadsheet (ODS), or dBASE (DBF) files. Spatial geometries are omitted from these output formats.