gw_fct_setarcfusion - Giswater/giswater_dbmodel GitHub Wiki
Description
Used to fusion two arcs in a unique new one, downgrading the node in case of it is possible to o it
Input example
SELECT gw_fct_setarcfusion($${
"client":{"device":4, "infoType":1, "lang":"ES"},
"feature":{"id":["51"]},
"data":{"workcat_id_end":"work1","enddate":"2020-02-05"}}$$)
Output example
{
"status": "Accepted",
"message": {
"level": 3,
"text": "Arc fusion done successfully"
},
"version": "3.5.002",
"body": {
"form": {},
"data": {
"info": {
"geometryType": "",
"values": [
{
"id": 3640,
"message": "ARC FUSION"
},
{
"id": 3641,
"message": "-------------------------------------------------------------"
},
{
"id": 3642,
"message": "Fusion arcs using node: 51."
},
{
"id": 3643,
"message": "Arcs related to selected node: 154, 153."
},
{
"id": 3644,
"message": "Copy 2 elements from old arcs to new one."
},
{
"id": 3645,
"message": "Copy 6 documents from old arcs to new one."
},
{
"id": 3646,
"message": "Copy 2 visits from old arcs to new one."
},
{
"id": 3647,
"message": "Reconnect 7 connecs."
},
{
"id": 3648,
"message": "Reconnect 1 gullies."
},
{
"id": 3649,
"message": "Change state of node 51 to obsolete."
},
{
"id": 3650,
"message": "Delete arcs: 154, 153."
}
]
},
"point": {
"geometryType": "",
"features": []
},
"line": {
"geometryType": "",
"features": []
},
"polygon": {
"geometryType": "",
"features": []
}
},
"actions": {
"hideForm": false
},
"layerManager": {
"index": [
"v_edit_node"
],
"functionId": 2112,
"visible": [
{
"v_edit_arc": {
"style_id": 101,
"geom_field": "the_geom",
"pkey_field": "arc_id",
"group_layer": "GW Layers"
}
},
{
"v_edit_node": {
"style_id": 104,
"geom_field": "the_geom",
"pkey_field": "node_id",
"group_layer": "GW Layers"
}
}
]
}
}
}