MapInfo Pro Developers User Group

Welcome to the MapInfo Pro Developers community!  We are a group dedicated to the discussion and understanding of MapBasic and .Net MapInfoPro AddIn development. Bring your questions and ideas here. This group includes several members of the Pro development team from around the world.

Please feel free to start a discussion in the discussion tab or join in a conversation.

Product Information  Ideas Portal  MapInfo Community Downloads

Discussions

Members

Resources

Events

 View Only

I have two variables, a point object and a region object (has only one polygon) How can I determine if the point object is Within the region object. Ideally a Yes/No (TRUE/FALSE) answer

  • 1.  I have two variables, a point object and a region object (has only one polygon) How can I determine if the point object is Within the region object. Ideally a Yes/No (TRUE/FALSE) answer

    Posted 07-26-2018 02:50

    IntersectNodes() does not work, it does not accept a point object as an input

     

    A Select statement would work, if one of the objects was part of a record in a table. But they are both variables. I want to avoid the rigmarole of creating tables just to place the object variable into.



  • 2.  RE: I have two variables, a point object and a region object (has only one polygon) How can I determine if the point object is Within the region object. Ideally a Yes/No (TRUE/FALSE) answer

    Posted 07-26-2018 21:42

    I solved it

    I just use the Geographic Operator Within

    If <pointObject> Within <regionObject> Then ...



  • 3.  RE: I have two variables, a point object and a region object (has only one polygon) How can I determine if the point object is Within the region object. Ideally a Yes/No (TRUE/FALSE) answer

    Posted 08-13-2018 01:54

    You should use " Within " function in the Query table. Its just simple as that.