Minimum bounding rectangle

342 views
Skip to first unread message

Jamie

unread,
Aug 23, 2013, 5:05:05 AM8/23/13
to mapi...@googlegroups.com
Is there a tool anyone is aware of that will create minimum bounding rectangles for input polylines? i've got about 2000 to do.

I have access to:
Mapinfo 12.01
Engage 3D Pro 8
ArcView 10 (i know there is a tool in ArcInfo but we don't have that licence level)

Uffe Kousgaard

unread,
Aug 23, 2013, 5:13:33 AM8/23/13
to mapi...@googlegroups.com
Hi,

If you store all objects in a single table, you can use tableinfo with
TAB_INFO_MINX etc. as argument.

If you want it for one polyline at a time, the MBR functions is all you
need.

Regards
Uffe Kousgaard
> --
> --
> You received this message because you are subscribed to the
> Google Groups "MapInfo-L" group.To post a message to this group, send
> email to mapi...@googlegroups.com
> To unsubscribe from this group, go to:
> http://groups.google.com/group/mapinfo-l/subscribe?hl=en
> For more options, information and links to MapInfo resources (searching
> archives, feature requests, to visit our Wiki, visit the Welcome page at
> http://groups.google.com/group/mapinfo-l?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "MapInfo-L" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mapinfo-l+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Thomas Bacon

unread,
Aug 23, 2013, 5:13:46 AM8/23/13
to mapi...@googlegroups.com

In Mapinfo you can use the MBR() function to do just that.

 

I would:

 

-          Make a copy of your input table.*

-          Open your copied polyline table in MapInfo

-          Open the mapbasic window

-          Enter the following into the mapbasic window (replacing YourTable with the actual table name) and hit enter: Update YourTable set obj = MBR(obj)

-          Save the table.

 

This will replace* (make sure you have a copy of the original table!) your polyline objects with MBR polygons.

 

Hope this helps,

 

Tom Bacon

GIS Engineer, Mouchel

T 01444 472380 │ E thomas...@mouchel.com W www.mouchel.com

Our values: innovation │ excellence │ integrity │ responsibility

--

--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
 
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Mouchel logo

Mouchel Limited (Mouchel) is registered in England and Wales with registered number 01686040 at Export House, Cawsey Way, Woking, Surrey, UK, GU21 6QX.  The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of Mouchel. No contracts may be concluded on behalf of Mouchel by means of email communications. Mouchel reserves the right to monitor and intercept emails sent and received on our network. 

Jamie

unread,
Aug 23, 2013, 5:33:09 AM8/23/13
to mapi...@googlegroups.com
thats great thanks for both your help
Reply all
Reply to author
Forward
0 new messages