Hi all,

How can I detect if an ellipse shaped object is within boundaries of an
region?

MapBasic's geographic operation " objectA Entirely Within objectB"
always returns FALSE when  object A is an ellipse and objectB is a
region.
The opposite operation "objectA Contains Entire ObjectB) results always
False when objectA is a region and objectB is an ellipse.

I noticed the problem in MapInfo 5.0 using MapBasic 5.0

You can verify  this for yourself in MapInfo:
-Set cosmetic layer editable
-Draw a region
-Draw an ellips within the boundaries of the region
-Draw a rectangle within the boundaries of the region
-Open the mapBasic window
-In MapBasic window type:
 Dim region as Object
 Dim ellips as Object
 Dim rect as object
-In mapper window select the region
-In MapBasic window type:
 region = selection.obj
-In mapper window select the ellipse
-In MapBasic window type:
 ellips = selection.obj
-In mapper window select the rectangle
-In MapBasic window type:
 rect = selection.obj
-In MapBasic window type:
 print (rect entirely within region) 
 print (ellips entirely within region)

The first print  result = "T" (true)
The second printresult = "F" (false)

Is this a bug or what?

Martin Vanmol
Cegeka Industrial Systems
E-mail: [EMAIL PROTECTED]



----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to