gw_fct_getlayersfromcoordinates - Giswater/giswater_dbmodel GitHub Wiki


Description

Get information about layers and features if exists using given point coordinates

Input example

SELECT gw_fct_getlayersfromcoordinates($${
"client":{"device":4, "infoType":1, "lang":"ES"},
"form":{}, "feature":{},
"data":{"pointClickCoords":{"xcoord":419195.116315, "ycoord":4576615.43122},
"visibleLayers":["ve_arc","ve_node","ve_connec", "ve_link", "ve_vnode"], "srid":25831, "zoomScale":500}}$$)

Output example

{
  "status": "Accepted",
  "version": {
    "value": "3.4.019"
  },
  "body": {
    "message": {
      "level": 1,
      "text": "Process done successfully"
    },
    "form": {},
    "feature": {},
    "data": {
      "layersNames": []
    },
    "returnManager": {
      "style": {
        "ruberband": {
          "width": 3,
          "color": [
            255,
            0,
            0
          ],
          "transparency": 0.5
        }
      },
      "functionId": 2590
    }
  }
}