Filter:

Submit Search

## Configuring your import mappings

Import mappings define how your Network Manager Telecom design is built from the out tables, in a Comsof Fiber Integration Module workspace. You must define at least one set of import mappings.

Each set of import mappings is stored in a separate database setting. A partial example is shown below:

    {

      "name": "Comsof",

      "description": "Import Comsof design",

      "engine": "comsof",

      "options": {},

      "file_specs": [

        "*.shp"

      ],

      "mappings": [

        {

          "feature_type": "building",

          "src_feature_type": "OUT_AccessStructures",

          "filter": "[type]='CentralOffice' & [layer]<>'Not Used'",

          "field_mappings": {

            "id": "equip/[eq_id]",

            "name": "[eq_id]",

            "location": "[geometry]",

            "_node_id": "[id]"

          }

        },

        {

          "feature_type": "cabinet",

          "src_feature_type": "OUT_AccessStructures",

          "filter": "[type]='Cabinet' & [layer]<>'Not Used'",

          "field_mappings": {

            "id": "equip/[eq_id]",

            "name": "[eq_id]",

            "location": "[geometry]",

            "_node_id": "[id]"

          }

        },

You can configure import mappings via the Comms tab sheet on the Settings page of the Configuration module. It is recommended that you start from the example in:

>     <module>/models/example_mappings/comsof_import.settings

All Comsof Fiber Integration Module import mappings must have a name that starts with the prefix `mywcom.import_config`.
The mappings include a number of special fields, for example, _node_id. These are required by the importer and must not be removed.