Filter:

Submit Search

## Configuring your export mappings

Export mappings define how the in tables in a Comsof Integration Module workspace are populated from objects in your Network Manager database. You must define at least one set of export mappings.

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

>     {

>       "name": "Addresses",

>       "description": "Populate Comsof input tables from address data",

>       "process_ops": [

>         "/streetDoubler",

>         "/createBuildingTrenches",

>         "/createTransitions",

>         "/createCrossings

>       ],

>       "calculate_ops": [

>         "/calculate"

>       ],

>       "mappings": [

>         {

>           "feature_type": "IN_DemandPoints",

>           "src_feature_type": "address",

>           "field_mappings": {

>             "demand": "1",

>             "include": "1",

>             "pon_homes": "1",

>             "geometries": "[location]"

>           }

>         },

>         {

>           "feature_type": "IN_StreetCenterLines",

>           "src_feature_type": "street",

>           "filter": "not [type] in ('cycleway','footway')",

>           "field_mappings": {

>             "include": "T",

>             "geometries": "[geometry]"

>           }

>         },

>         {

>           "feature_type": "IN_CentralOffice",

>           "src_feature_type": "building",

>           "filter": "[comsof_auto] <> true",

>           "field_mappings": {

>             "gistool_id": "building/[id]",

>             "include": "T",

>             "geometries": "[location]"

>           }

>         }

>     }

You can create your setting from scratch using Configuration page Settings -> Advanced. Alternatively, you can modify the example in:

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

An export setting name must start with the prefix comsof.export_config.