Max diameter of non circular object

117 views
Skip to first unread message

Ed

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

This has probably been asked before but not sure of the best way to do it.

I have a cellular dominance map of each cells unique coverage area. I want to run a query on the max diameter of the shape file to give a very general 'Max serving range'.
So, in the enclosed image it would be the length of the red line.

My old school maths is not coming back to me, if I got the perimeter of the shape, could I just extract the generic diameter from this. I know the objects aren't neccessarily circular, but this just has to be somewhat accurate!

thanks in advance.
Ed
Max extents.jpg

Thomas Bacon

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

Hi Ed,

 

You could do this with a perfect circle (or an oblong circle as long as the stretch was perfectly along the x or y axis) by using the MBR function to get the bounding rectangle and using the longest of width or height as the result. Unfortunately, with irregular polygons such as the one’s you have, I’m pretty sure the only way is to get the distance of each node of the polygon to all of the others and determine the longest length from the results. A fairly simple MapBasic script could do this if you’re happy to do some coding.

 

Regards,

 

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. 

Lars I. Nielsen

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

Hi Ed,

 

I suggest doing it this way:

 

1.       Convert your outer perimeter(s) for each distinct coverage area into a table of points.

2.       Build a table of distances between each set of 2 points.

3.       Find the maximum distance, yielding the two points furthest from each other. This is your "maximum range" represented by the red line.

 

I think there are available tools for 1 and 2.

 

Kind regards / Med venlig hilsen
Lars I. Nielsen
----------------------------------------------------------------

Landinspektør, Senior GIS Programmør og Konsulent
Hvenegaard og Jens Bo Landinspektører A/S
Rugaardsvej 55, DK-5000 Odense C
Denmark
Tel. +45 6313 5050
http://www.hvenegaard.dk

--

Reply all
Reply to author
Forward
0 new messages