The import of CSV data into Network Editor is a highly configurable process. In the standard application template, which is created with Network Editor the process is defined as a sequence of several commands in a chain.
[
{
"name": "system.read-files",
"arguments": {
"accept": ".csv,.CSV",
"fileTypeDescription": "surveydataservice-readfile-prompt-message",
"multiple": false,
"promptTitle": "surveydataservice-readfile-prompt-title"
}
},
"results.upload-data-from-files",
"results.configure-upload-data",
"results.upload-data-to-features",
"results.convert-to-layers",
"layers.edit-settings",
"layers.edit-symbols",
"layers.set-title",
"layers.set-task-settings",
"layers.set-popup-template",
"layers.set-symbol",
"map.add-layers",
"map.go-to-layer-extent"
]
This command chain generates a sequence of four dialogs.
•File selection (system.read-files)
•Settings dialog (results.configure-upload-data)
•Edit the layer properties of the newly created graphic layer (layers.edit-settings)
•Editing the feature symbology in the graphic layer (layers.edit-symbols)
This approach allows a very high degree of flexibility to adapt the import process to your own needs. Certain commands can be removed or the command chain can be extended with your own commands or workflows.