Thanks to all who responded to this query. If anyone is interested, below is
the detailed response I forwarded to one our "not-too-technical" users, to
satisfy his specfic needs.

Cheers,
Domenic

The initial query was;
> In MapInfo, is there an easy way of outputting the MBR (Minimum Bounding
> Rectangle) coordinates of a polygon, to a text file?


Answer:
---------------------------------------------------------------

This procedure will give you an MBR for each polygon within a MapInfo Table.

1. Make a copy of the Table for which you wish to determine MBR's and add 4
numeric (decimal) fields using Table-Maintenance-TableStructure. Name these new
4 fields, "MinX", "MinY", "MaxX" and "MaxY".


2. Use Table-UpdateColumn and enter the following;

Table to Update:        "Copied Table above"
Column to update:       "MinX"
Get value from Table:   "Copied Table above"
Value:  Use "Assist" to enter the expression, ObjectGeography(obj,1).

3. Repeat Step 2. for each of MinY, MaxX and MaxY. In the selection expression
replace (obj,1) with (obj,2) for MinY, and so on.. ie;

(obj,1) returns MinX
(obj,2) returns MinY
(obj,3) returns MaxX
(obj,4) returns MaxY

4. Save the Table and using Table-Maintenance-TableStructure, remove all fields
except for the newly created MBR fields, and the Polygon ID/Name field.

5. Save the Table again and use Table-Export to export to an ASCII comma
delimited text file.


NB: Tables which have undergone editing may require Packing to optimize MBR's,
though I suspect that the Table's you will be querying will be simple, and
packing will not be required. To Pack a Table use Table-Maintenance-PackTable.
---------------------------------------------------------

----------------------------------------------------------------------
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