CSV / CSV Spatial
In the
Files
Select .csv files for import.
Table Name
The system automatically generates a unique table name based on the file name, which you can adjust manually (maximum 30 characters).
Delimiter, Decimal Separator, and Encoding
The system automatically detects the most likely CSV field separator (delimiter) by evaluating consistency across the first rows of the file. This smart detection actively ignores characters enclosed within double quotes to prevent false positives from textual data. Based on the detected column delimiter, the system also smartly suggests the appropriate Decimal separator (e.g., proposing a comma if a semicolon is detected). You can manually override these detected separators and specify the text encoding (defaults to UTF-8).
⚠️ Important Data Warnings:
- Encoding: Ensure you select the correct text encoding (e.g., select
Windows-1250for Central European diacritics). If the wrong encoding is used, rows containing special characters may be completely dropped during import to protect the database. - Decimal Separator: Always verify that the correct decimal separator (point or comma) is selected. Choosing the wrong separator will strip decimal values and severely corrupt coordinate precision (shifting points on the map) and numeric attributes.
Columns and Data Types
The system performs a quick local parse of the file to automatically guess the appropriate data type for each column, such as integer, numeric, date, datetime, boolean, or text. You can review this generated column list, manually adjust the detected data types, and choose to completely exclude specific columns from being imported by unchecking the Import box. On the server side, a specific mapping file (.csvt) is generated to explicitly enforce your chosen data types during the database import.
Spatial Data, CRS, and Reprojection
The system automatically inspects the column headers to detect spatial data, looking for X/Longitude, Y/Latitude, Z/Elevation, or WKT/GeoJSON fields. If spatial data is present, you must specify the source Coordinate Reference System (Layer CRS) and select a Geometry type (XYZ Coordinates or WKT / GeoJSON). You can also choose to reproject the coordinates into a new Target CRS during the import.
If the file is purely tabular and contains no spatial data, you can uncheck the "File contains spatial data" option, which will automatically hide all geometry and CRS configuration fields. During a spatial import, the server strictly validates geometry creation; if no valid geometries can be extracted from the specified columns, the process is safely aborted and rolled back to prevent the creation of empty spatial tables.
Options
- First row is header - Specifies whether the first row of your file contains column names or actual data. If unchecked, the system will import the first row as standard data and automatically generate technical column names (field_1, field_2, etc.).
- Personal Use - Table imported with this option will be linked to your username and will therefore only be visible to you.
- Read-only - Enable the option if you want to prevent the table data from changing.
- Open Table - The table will be opened and loaded automatically after import.
- Add Layer to Workspace - If the Open Table option is checked and the file contains valid spatial data, you can enable this option to automatically add the resulting layer to your current workspace.
- Skip errors - Continue importing the rest of the data if individual features encounter an error. Problematic records will not be transferred to the target table.
Processing
Large CSV files are uploaded in chunks over the network, allowing the system to safely resume the upload if a network failure occurs. During the database import, potential column name conflicts—such as an existing user attribute named 'gid' within the CSV—are automatically resolved by the system using temporary database keys to prevent primary key collisions. Additionally, the system safely processes thousands separators and automatically converts standard timestamps into time-zone-aware timestamps to ensure data consistency across the platform.
