WFS (Web Feature Service)
In the
What is WFS and What Do We Gain by Importing It into Gismatrix?
A Web Feature Service (WFS) is an international standard defined by the Open Geospatial Consortium (OGC) for serving and transferring vector geographic features (points, lines, polygons), their associated attribute data, and standalone non-spatial data tables (code lists) directly over the internet. Unlike WMS or WMTS services, which only deliver pre-rendered raster map images, a WFS server provides the actual geometric coordinates and complete tabular records of individual objects.
By importing a WFS layer or table into Gismatrix, the data from the external web service is fetched by the cloud server and converted into a native Gismatrix vector or attribute table. This eliminates all common limitations of live WFS streaming (such as slow panning and zooming, server feature-count limits, lack of offline access, and browser CORS blocks) and unlocks the full power of the Gismatrix platform:
- 100% Offline Capability (Offline-First): Once imported, the layer or table synchronizes directly to your device's local storage and remains fully accessible in the field, even without an internet connection.
- Support for Spatial Layers and Non-Spatial (Attribute) Tables: In addition to standard spatial map layers with geometry, you can also import WFS tables that do not contain any spatial information or geometries (such as official code lists, registries, land-use classifications, or descriptive lookup tables). The system automatically detects these tables and imports them as standard attribute tables.
- Blazing-Fast Rendering and Responsiveness: Powered by local spatial and database indexing on your device, map panning, zooming, and browsing through millions of records are instantaneous without waiting for external server responses.
- Advanced SQL Queries and Spatial Analysis: Use the imported table in the Browser or directly on the map to run complex SQL queries, Select by Location, Create Buffer, spatial and attribute joins (Update Column), and Column Statistics.
- Full Editing, Attachments, and Change History: When imported as an editable table, you can freely modify geometries and attributes, draw new features, attach photos, videos, or documents, and track the complete record change history.
- Rich Styling and Thematic Maps: Apply custom thematic maps (individual values or numeric ranges) and dynamic SQL label expressions (including curved labels along lines) to spatial layers, or link imported attribute tables directly as dropdown lists (lookups) and relation objects display.
Server
Select an existing WFS server connection from the Server drop-down list. You can manage your WFS server connections using the buttons in the top toolbar and next to the input field:
- Add server (
): Opens the dialog to register a new WFS endpoint. Enter a descriptive Name, the base Server URL (without query parameters, e.g., https://prostor.maribor.si/ows/public/wfs), optionally share the server connection with other users of the application, and provide HTTP Basic Authentication credentials (username and password) if required by the service. Click Verify to test the connection immediately—the verified layer list is automatically passed to the main window without re-querying the server. - Server details (
): Opens the configuration dialog to view or edit the currently selected WFS server. - Remove server (
): Deletes the currently selected WFS server connection from your saved list.
Tabular Layer List and New Table Name
Whenever a server is selected, the system automatically inspects the WFS service capabilities (GetCapabilities) and displays all available feature types and data tables in an interactive, searchable table:
- Layer: The technical name (typename) of the layer or table on the WFS server (e.g.,
GURS:KN_PARCELE). - Layer alias: The human-readable title reported by the WFS server. By default, the list is sorted alphabetically by this title.
- Coordinate system: The detected projection code (e.g.,
EPSG:3794). For non-spatial (attribute/codelist) tables that do not contain geometry, this column is empty.
Using the quick-filter input boxes directly below each column header, you can instantly filter the catalog by technical name, human-readable alias, or EPSG code—making it effortless to find the exact layer you need even on servers publishing hundreds of layers.
Clicking a row in the table reveals the import configuration options below and automatically suggests a unique, database-safe New table name (lowercase characters and underscores, stripped of namespace prefixes, maximum 30 characters), which you can adjust manually before starting the import.
Layer CRS, Reprojection, and Geometry Layout
When a spatial layer is selected in the table, the system automatically reads the source Coordinate Reference System (Layer CRS) advertised in the WFS layer's metadata and maps it to a standard EPSG code. If the WFS server does not report a recognized EPSG code for a spatial layer, a selector field is displayed so you can manually choose the appropriate source CRS.
You can also specify the Geometry layout (2D - XY, 3D - XYZ, 3D - XYM, or 4D - XYZM) and choose whether to enable Reprojection to transform the coordinates into a new Target CRS during the import process.
Automatic Adaptation for Non-Spatial Tables: If you select a layer that does not contain spatial information or geometries (such as an attribute table or code list), all spatial-only settings (Layer CRS, Geometry layout, Reprojection, Extent, and Add Layer to Workspace) are automatically hidden, and the dataset is imported as a pure tabular table immediately accessible in the Browser.
Extent (BBOX Spatial Filter)
Public national or municipal WFS servers often host millions of spatial features (such as all cadastral parcels or buildings across an entire country), whereas your project may only require data within a specific area of interest. For spatial layers, the Extent (minX, minY, maxX, maxY) field allows you to spatially filter the import using a bounding box:
- Retrieve data from the current map view (
): Clicking the left-arrow action button automatically captures the geographic extent currently visible on your map, transforms the coordinates into the WFS layer's source CRS if necessary, and populates the field. If you subsequently change the source CRS, the entered extent is automatically reprojected. - Manual Entry: You can also manually type or paste bounding coordinates in the format
minX, minY, maxX, maxY(expressed in the layer's source CRS). - Clear (
): Clears the bounding box filter. When left empty, all features from the selected WFS layer will be imported without spatial restrictions.
Options
- Personal Use: A table imported with this option will be linked to your username and will therefore only be visible to you. It makes sense to use layers based on such tables only in workspaces that are available only to you. This setting can be changed later in the Table Manager.
- Read-only: Enable this option if you want to prevent the table data from being modified. This setting can be changed later in the Table Manager.
- Open Table: The table will be opened and loaded into the application automatically after a successful import.
- Add Layer to Workspace: When importing a spatial layer with the Open Table option checked, you can enable this option to automatically add the resulting vector layer to your current workspace. (When importing non-spatial attribute tables, this option is automatically hidden.)
- Skip errors: Continues importing the remaining data if individual records encounter an error (such as a malformed geometry or a text value exceeding the server's reported column length). Problematic records will not be transferred to the target table.
Processing
The data transfer and conversion are executed directly by the Gismatrix Cloud server using a highly optimized GDAL/OGR WFS pipeline with HTTP GZIP compression and high-speed bulk ingestion. The engine automatically handles feature pagination for massive datasets (scaling up to millions of rows), coordinate axis order normalization, and UTF-8 character encoding. If importing a large WFS dataset takes longer, the operation seamlessly continues in the background even if you close the dialog, and the layer is automatically loaded into your application as soon as processing finishes.
During the database import, Gismatrix enforces strict structural integrity: original field lengths and data types
from the WFS schema are preserved, potential column name conflicts (such as an existing gid or
gml_id attribute) are safely resolved, all table and column names are normalized to unquoted lowercase
identifiers, and for spatial layers, invalid geometries are automatically repaired (make valid) and an
mi_style column is added to support MapInfo-compatible per-feature styling.