Zum Hauptinhalt gehen

Query Layer activity for multipoint

Kommentare

5 Kommentare

  • Stefan Schweigert

    Hi Marek,

     

    That is a good suggestion. The other option, though not as clean, would be to run multiple query layers and combine the results.

     

    Thanks, Stefan

    0
  • Erik Kuipers

    Perhaps you can use:

    Union Geometries Activity

     

    0
  • Permanently deleted user

    I tried to feed Query Layer with geometry from json made from picked points but it didn't work (file is attached). Interesting that it works when I write point coordinates directly to Get Geometry From JSON:

    ={

     points:[  [-757608,-975473], [-761043,-975192]

     ],

    spatialReference:{wkid:102067}

     }

     

    0
  • Permanently deleted user

    Hi Marek,

     

    I looked at the workflow you attached, and I think it might be an issue on the Get Geometry From JSON activity. This activity accepts either a json object or a string as an input, but the value it was provided with was a mix; the structure was a json object, but the $json_multipoint value inside it is a string.

     

    I tried changing the input for the activity to a string expression instead, and it seems to work correctly:

    =`{"points": [${$json_multipoint.result}], "spatialReference":{"wkid":102067}}`

    (if you're not familiar with the template literal format for writing string expressions, check out https://docs.geocortex.com/workflow/latest/help/Default.htm#wf5/help/expressions.htm#Use_String_Expressions%3FTocPath%3DExpressions%7C_____2)

     

    0
  • Permanently deleted user

    Thanks for your advice, it works.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.