Hi, I got the obvious solution : use the geo operator, simply if pObj within rObj
and I am able to see the light again .. Thanks Jon Petter -----Original Message----- From: Campbell, Keith A [mailto:[EMAIL PROTECTED] Sent: 16. april 2004 10:10 To: Jon Petter Nielsen Cc: 'MapInfo-L ([EMAIL PROTECTED]) Subject: RE: MI-L MB : Point inside region Jon, Assuming the point objects are in are separate table to the polygon, all you need is an SQL statement:- SELECT * FROM <POINT_TABLE> WHERE obj WITHIN ANY (SELECT obj FROM <REGION_TABLE>) INTO Selection Then you can check whether the Selection table has any rows in it with TableInfo or SelectionInfo. Or have I misunderstood you? Regards, Keith -----Original Message----- From: Jon Petter Nielsen [mailto:[EMAIL PROTECTED] Sent: 16 April 2004 08:55 To: [EMAIL PROTECTED] Subject: MI-L MB : Point inside region Listers, In an application I need a rapid logical test : Is a point (object) inside a (one_polygon_) region object or not. I feel I'm blind for an obvious and simple way of determining this in MB. Does anyone have "MB snippets" for such a test ? I'm on my way making one using - Create a line from the point to a new point definitly outside the region (MBRvalues+offset) - Use IntersectNodes - Count the nodes of the intersection polyline (even number=outside, odd number=inside) but is there an obvious and simpler way ? rgds. Jon Petter Nielsen Ugland It Group AS +47 6759 2818 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11405 This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11407