Import Configuration

The configuration settings of the import citygml-adv are defined in the "advImportOptions" section. The following example shows the corresponding JSON structure:

{
  "advImportOptions": {
    "buildingMappings": {
      "brid:Bridge": {
        "functions": ["53001_1806", "53001_1807"],
        "isMovable": ["53001_1806"]
      },
      "con:OtherConstruction": {
        "functions": ["51001_1005", "51001_1007"]
      }
    }
  }
}

The "advImportOptions" section contains the "buildingMappings" JSON object. It is used to define the list of function codes that trigger the conversion of a building into a bridge or an other construction.

Property Description Default value

functions

List of function codes for the corresponding feature type. If the values of the bldg:function attribute of an input building match one of the values specified here, the respective conversion is triggered.

isMovable

List of a subset of function codes for brid:Bridge. If a match occurs, the brid:isMovable attribute of the bridge is set to true. The isMovable list is only permitted for the brid:Bridge feature type.

Using the JSON configuration, the predefined function codes of the import citygml-adv command for the respective target feature type can be replaced with custom values. Once a custom list is used for a target feature type, only the values from that list apply to that target feature type. There is no fallback to the predefined function codes. For target feature types without a custom list, the predefined function codes remain in effect.