gw_fct_setprint - Giswater/giswater_dbmodel GitHub Wiki
Description
Set values on fastprint dialog for current user
Input example
SELECT gw_fct_setprint($${
"client":{"device":4, "infoType":1, "lang":"ES"},
"form":{},
"feature":{},
"data":{"composer":"mincutA4","scale":"10000","rotation":"10",
"ComposerTemplates":[{"ComposerTemplate":"mincutA4",
"ComposerMap":[{"width":"179.0","height":"140.826","index":0, "name":"map0"},
{"width":"77.729","height":"55.9066","index":1, "name":"map7"}]},
{"ComposerTemplate":"mincutA3",
"ComposerMap":[{"width":"53.44","height":"55.9066","index":0, "name":"map7"},
{"width":"337.865","height":"275.914","index":1, "name":"map6"}]}],
"extent":{"p1":{"xcoord":418284.06010078074,"ycoord":4576197.139572782},
"p2":{"xcoord":419429.332014571, "ycoord":4576756.056126544}}}}$$)
Output example
{
"status": "Accepted",
"apiVersion": {
"value": "3.4.019"
},
"data": {
"geometry": {
"st_astext": "POLYGON(418097.810212009 4575627.79345957,419860.123686024 4575938.5368735,419615.581903343 4577325.40223976,417853.268429328 4577014.65882583,418097.810212009 4575627.79345957)"
},
"map": "map0",
"mapIndex": 0,
"extent": "[417853.268429328,4575627.79345957,419860.123686024,4577325.40223976]"
}
}