Database Import
A Database Import Task imports features into one of the configured databases.
Step 1 (Task name)
| Option | Description |
|---|---|
Task Name |
Name of the task. |
Create or overwrite Datasource |
Select whether to create a new datasource or overwrite an existing one |
Datasource Name |
If an existing data source is to be overwritten, select the source here. |
Click NEXT STEP to continue.
Step 2 (Database)
In this step, the target database for the import process must be selected.
Select Database
Choose the database where the data will be imported.
The system lists the available configured databases. Select the appropriate one from the dropdown menu.
|
If the required database is not listed, it must first be configured in the administration section. See Database Management for instructions on how to create and manage database connections. |
Validate Connection to Database
After selecting the database, click Validate Connection to Database to verify that the connection is working properly. This validation is optional but recommended.
This step ensures:
-
The database is reachable
-
Credentials are correct
-
The import task can be executed without connection issues
Once the connection is successfully validated, click NEXT STEP to continue.
Step 3 (Task settings)
In this step, configure the input data and the import options.
Select Import File or Directory
Select the input source for the import:
| Input source | Behavior | Notes |
|---|---|---|
File |
Imports exactly the selected file. |
The file extension does not matter, but the content must match a supported CityGML/CityJSON version for the selected database and (if applicable) the selected format. |
Directory |
Scans the selected directory recursively and imports all supported files. |
Supported files are detected based on their file extension (see below). |
ZIP archive |
Scans the archive recursively like a directory and imports all supported files. |
Supported files are detected based on their file extension (see below). |
When scanning a directory or ZIP archive, the Publisher searches for input files based on their file extension:
| Format | File extensions (directory/ZIP scan) |
|---|---|
CityGML |
|
CityJSON (incl. CityJSONSeq) |
|
Format
| Database | Supported input formats | Default | Behavior |
|---|---|---|---|
VCDB 4 |
CityGML 1.0/2.0, CityJSON 1.0 |
n/a |
|
VCDB 5 |
CityGML 1.0/2.0/3.0, CityJSON 1.0/1.1/2.0 |
CityGML (1.0/2.0/3.0) |
|
For VCDB 5 databases, CityJSON 1.1/2.0 import supports CityJSON Text Sequences (CityJSONSeq) / *.jsonl.
|
Import Mode
The import mode defines how incoming features interact with existing features in the database.
Duplicates are detected based on the identifier of a feature:
-
CityGML:
gml:id -
CityJSON: the
keyin the"CityObjects"collection (CityJSON) or the"id"of"CityJSONFeature"objects (CityJSONSeq)
| Terminated features are excluded from the duplicate check. |
Four modes are available:
| Option | Description | Default value |
|---|---|---|
Import All |
|
Default |
Skip Existing |
|
|
Delete Existing |
|
|
Terminate Existing |
|
Import Options
These settings control performance and processing behavior.
| Option | Description | Default value | VCDB 4 | VCDB 5 | Input format |
|---|---|---|---|---|---|
Preview mode |
Run the import in preview mode. Features are parsed and validated, but not written to the database. |
Off |
No |
Yes |
CityGML, CityJSON |
Deactivate indices and automatically reactivate |
If enabled, indices are deactivated before processing and automatically reactivated after the import is finished. This can improve performance for large imports, but may add overhead for smaller incremental imports. |
Off |
Yes |
Yes |
CityGML, CityJSON |
Number of Threads |
Number of parallel threads used during import. Each thread requires a separate database connection. |
|
Yes |
Yes |
CityGML, CityJSON |
Log Level |
Defines the minimum severity of events that are shown in the task log. All messages of that severity or higher are included. See Log Level below. |
|
Yes |
Yes |
CityGML, CityJSON |
Fail fast on errors |
If enabled, stop the import immediately when an error occurs. |
Off |
Yes |
Yes |
CityGML, CityJSON |
Compute and replace envelopes |
If enabled, envelopes (feature extents) are computed from the geometries during import and overwrite extents read from the input files. |
On |
No |
Yes |
CityGML, CityJSON |
Map unsupported types to generics |
If enabled, city objects from unsupported CityJSON extensions are mapped to generic city objects. Unknown extension attributes are stored as generic attributes. |
Off |
No |
Yes |
CityJSON |
Read appearances |
If enabled, appearance information (textures, materials) is imported as well. |
On |
Yes |
Yes |
CityGML, CityJSON |
Themes |
Optional list of appearance themes to import (comma-separated). If left empty, all appearances are imported. Use Only relevant when Read appearances is enabled. |
(empty) |
No |
Yes |
CityGML, CityJSON |
Log Level
Defines the minimum severity of events that are shown in the task log. All messages of that severity or higher are included.
The available log levels, ordered from highest to lowest severity, are:
| Level | Description | Default value |
|---|---|---|
|
Critical errors causing immediate termination (least output). |
|
|
Non-recoverable errors. |
|
|
Warnings about potential issues. |
|
|
General operational messages. |
Default |
|
Detailed debugging information. |
|
|
Most detailed logs for troubleshooting. |
| Use debug or trace for debugging or in support cases. |
Metadata
Optional metadata fields for documenting the import process:
| Option | Description | Default value |
|---|---|---|
Data lineage or origin of features |
Lineage of the imported data (origin information stored with the features). |
|
Updating person |
Name of the responsible person performing the import. |
Database user |
Reason for update |
Explanation of why this import is being performed. |
|
For VCDB 5 databases, the lineage field supports the following placeholders, which are automatically replaced during import:
The |
Filter Options
These options allow restricting the import to a subset of features.
| Option | Description | Default value | ||||
|---|---|---|---|---|---|---|
Feature IDs |
Comma-separated list of feature identifiers to import. |
|||||
Feature Types |
One or more feature types to import. Examples (as shown in the UI):
|
|||||
Bounding Box |
Spatial filter defined as
|
Off |
||||
Bounding Box Mode |
Defines how the bounding box filter is applied:
|
|
||||
Count limit |
Restricts the number of processed features and optionally skips a number of features at the beginning of the result set. Use:
|
Off |
| The limit and start index apply across all input files and can be used separately or together. This enables pagination-style imports when working with large datasets. |
| When using multiple filters, all conditions must be satisfied for a feature to be imported. |
| Filters are applied only to top-level features in the input files. Matching features are imported together with their contained subfeatures (CityGML) or 2nd-level city objects (CityJSON). Filtering subfeatures / 2nd-level city objects is not supported. |
CityGML Upgrade Options
These options are only available for CityGML imports into a VCDB 5 database.
They help resolve compatibility issues when importing data that originally comes from CityGML 2.0 or 1.0.
| Option | Description | Default value |
|---|---|---|
Use LoD4 as LoD3 |
Use LoD4 as LoD3, replacing an existing LoD3. |
Off |
Map LoD0 Roof Edge |
Map LoD0 roof edges onto roof surfaces. |
Off |
Map LoD1 MultiSurfaces |
Map LoD1 multi-surfaces onto generic thematic surfaces. |
Off |
Create city object relations |
If enabled, relations between imported city objects are created during the import. |
On |
Resolve cross LoD references |
If enabled, references between different Levels of Detail (LoD) are resolved during the import. |
On |
| For more information about these options, refer to the VC Database documentation on CityGML upgrade options. |
Click NEXT STEP to continue.
Step 4 (Task schedule)
| Option | Description |
|---|---|
Start Job as soon as possible |
Start the job immediately. |
Start Job once at given time |
Schedule job for a future time. |
Repeat Job |
Automatic periodic execution of the job. |
Publish Job after Completion |
Once conversion is successful, the datasource is published automatically. |