4 Replies Latest reply: Jun 6, 2018 10:30 AM by Arno Jeanjot RSS

    Point inside or outside given area

    Arun Raj

      Hi All,

      This is my second attempt at asking the same question. In my first attempt (Points In Polygon), I do not think I was able to explain the problem properly. Apologies. So here I go again ...

       

      I am provided with area co-ordinates and using QV I need to show if customers fall inside or outside this area.

       

      Area:
      load * inline
      [Area_X,Area_Y
      0,0
      4,0
      2,2
      4,4
      0,4
      0,0
      ];


      Customer:
      Load * inline
      [Customer_ID, Cust_X, Cust_Y
      1000001,1,3
      1000002,3,2
      ];


      Desired Result :
      [Customer_ID, Cust_X, Cust_Y, Inside_Outside_Indicator
      1000001,1,3, Inside
      1000002,3,2, Outside
      ];

       

      Please let me know if you need any further information. Any help will be greatly appreciated.

       

      PS: I don't know if I need to use (or how to use) linest_m and linest_b to work out the line equation between points.

       

      Kind Regards

      Arun