Zum Hauptinhalt gehen

Restrict my XY to min/max values,

Kommentare

6 Kommentare

  • Tom Neer
    It looks like you are using several different XY coordinate values. It would be easiest to check these at inital input using the RegEx rather than later in the Workflow. However, you can further check using something like: (XMin >= lon < XMax) AND (YMin >= lat >= YMax) ((XMin >= lon < XMax) AND (YMin >= lat >= YMax)) OR ((XMin >= lon < XMax) AND (YMin >= lat >= YMax)) Change out XMin/XMax/YMin/YMax to the values you need. 
    0
  • Permanently deleted user
    Thank you Tom, really appreciate.

     

    But it seems it doesn't work with me (attached).

     

    Could you please send me a workflow that contains the activity or the RegEx that you mentioned?

     

    Thank you in advance.

     

    User-added image

     

    Best,

     

    Majdoleen

     

     
    0
  • Tom Neer
    What does the error say if you hover over it? It looks like you have pasted it into a string.

     

    There is not much to the Regex Validators. You can find them:

     

    User-added image
    0
  • Permanently deleted user
    Thank you Tom,

     

    The error is as seen:

     

    User-added image

     

    And in the second option, as I can see you only can add one min value and one max, but in my case I want  2 minimum values for X and 2 min values for Y.

     

    User-added image

     

    Any suggestion?

     

    Thank you in advance.

     

    Best,

     

    Majdoleen

     

     
    0
  • Tom Neer
    So in the first image, what it is telling you is that you have a type mismatch. You are comparing numbers but have pasted the comparison into a string. Remove the quotes. 

     

    As for the Validators, you can setup more than one. Put in two numeric range validators with the valid ranges. 
    0
  • Permanently deleted user
    Thank you Tom, I've used this code (156153 >= longitude AND longitude < 176660) OR (73150 >= longitude AND longitude < 211309) OR (77418 >= latitude AND latitude < 220335) OR (86906 >= latitude AND latitude < 137834) after cast the string to double and it is working fine with me.

     

    Thank you in advance,

     

    Best,

     

    Majdoleen
    0

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