I implore you to post a [SUM]mary of answers that come your way.
There is not enough sharing going on here to make MI-L _really_ work.
If you are working with blocks (rectangles) this may
be satisfactory. If working with odd shapes it may not.
The following is incomplete, but may jump start you.
I use MI and MB v5.5.
In your MapBasic window, paste the following:
'''============== begin ===============
'''setup layers
Set Map Layer 1 Selectable On
select * from LayerInfo(FrontWindow(), 1, 1) ''' LAYER_INFO_NAME
Set Map Layer 0 Editable On Selectable On
''' create buffer
Create Object As Buffer From Selection Width 0.25 Units "mi" Type Spherical Resolution
12 Into Table Cosmetic1
''' I suggest changing the color of the buffer here (2click on it) for visibility
''' save the cosmetic layer to another layer called "TESTBuffer.tab" for this example
''' change the order of the layers to see the spray block and buffer
''' rework layers
Set Map Layer 0 Editable On Selectable On
Set Map Layer 1 Editable Off Selectable Off
Set Map Layer 2 Editable Off Selectable On
''' create mbr of the buffer
dim MBRobj as object
MBRobj = MBR(TESTBuffer.obj)
Create Rect (ObjectGeography(MBRobj, 1), ObjectGeography(MBRobj, 2)) ''' this and
the next are one line
(ObjectGeography(MBRobj, 3), ObjectGeography(MBRobj, 4))
''' I suggest changing the color of the MBR here (2click on it) for visibility
''' save the cosmetic layer to another layer called "BufferMBR.tab" for this example
''' change the order of the layers to see the spray block, buffer and MBR
'''============== end ===============
Though the buffer and MBR might look offset, they pass the following query:
Select * from BufferMBR, TESTBuffer where BufferMBR.Obj Contains Entire TESTBuffer.Obj
into Selection
// When using the buffer command in MapInfo, the created buffer polygon
// has rounded corners at line endpoints and the ouside corners of polygons.
// While mathematically accurate, this is a problem when digitizing
// agricultural spray blocks (crop dusting planes can't spray curves)
// and creating floor plans (building corners come out rounded). Does
// anyone know of an easier way to square buffer regions other than
// reshaping the nodes or splitting the buffer with a square object?
// Are there any simple line styles with squared endpoints?
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]