Something like Convex Hull but creates polygon around all outer points

1,339 views
Skip to first unread message

map1

unread,
Aug 8, 2012, 4:33:56 AM8/8/12
to MapInfo-L
Hello,

What I want to be able to do is to create a polygon around the
outermost points of a point dataset. This points are the results from
a gps survey. I can use Convex Hull but that has the elastic band
effect and only draws a polygon around the outermost points. What I
want to be able to do is create a polygon around all the outer points
to I can calculate the area that has been surveyed.

I'm sure a tool must have been developed in the past to do this.

Thanks for your help!

Bo Victor Thomsen

unread,
Aug 8, 2012, 4:47:08 AM8/8/12
to mapi...@googlegroups.com
Google "alpha shapes". I don't know if someone has programmed a MapBasic
application, which generates alpha shapes.

Regards
Bo Victor Thomsen
Aestas-GIS
Denmark

map1

unread,
Aug 8, 2012, 9:53:58 AM8/8/12
to MapInfo-L
Thanks Bo. Yes that's exactly what I want but it doesnt look like
anyone has created a tool to do it.

I'm sure this would be a very handy tool to have with mapinfo!

college.atlas

unread,
Aug 9, 2012, 1:54:03 AM8/9/12
to mapi...@googlegroups.com
Try this thread where this question was asked and answered to the OPs satisfaction.

Tony Pilkington

unread,
Aug 9, 2012, 4:49:37 PM8/9/12
to mapi...@googlegroups.com
Using Delaunay triangulation, a set of points like this
 
 
can be triangulated to this
 
 
The triangles coloured red have a maximum angle above a user set maximum angle. (Default 120 degrees)
 
If you eliminate the red triangles, you get a concave group of triangles that may be said to cover your survey area.
 
The MBX should is best run within a projective coordinate system and a maximum of about 250 points. (It has run at over 1000, but you need a lot of coffee)
Ensure you have no coincident points.
> --
> 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
>
>
> -----
> No virus found in this message.
> Checked by AVG -
www.avg.com
> Version: 2012.0.2197 / Virus Database: 2437/5185 - Release Date: 08/07/12
>
Delaunay points.png
Delaunay triangles.png
Delauney_2.MBX

Nyall Dawson

unread,
Aug 9, 2012, 10:34:01 PM8/9/12
to mapi...@googlegroups.com
Here's an alternative Alpha Shapes tool I wrote sometime ago. It includes routines for both Delaunay Triangles and Alpha Shapes. 

Similar restrictions as Tony's program apply - only use with projected coordinates, and don't try with too many points! (Also, it's MI10+ only.)

Hope it helps,

Nyall


On Wednesday, 8 August 2012 18:33:56 UTC+10, map1 wrote:
mi_alphashapes.zip

KTG Infotech

unread,
Aug 10, 2012, 8:09:37 AM8/10/12
to mapi...@googlegroups.com
can i ask you whats wrong in this, i am not clear on your query.

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



--
Kalai Selvan
KTG Infotech
GIS (Mineral Exploration)
Data Integration, Analysis, Capturing and Data Conversion
for Geochemistry,IP and Drill logs
Skypes-ktgcad

Untitled.png

Tony Pilkington

unread,
Aug 10, 2012, 8:51:16 AM8/10/12
to mapi...@googlegroups.com
The voronoi diagram covers areas outside the control points.
 
The basic principles of classical ground and air survey are that you work within your control and you look for intersections of rays (hence angles) of between 60 and 90 degrees; aka a strong cut. Assuming that the GPS survey has been done to set up control for denser work, then the long thin triangles are areas where small errors can lead to unacceptable errors, probably way outside any good error budget. This is best illustrated by reference to any manual on plane table surveying.

No virus found in this message.
Checked by AVG - www.avg.com

Version: 2012.0.2197 / Virus Database: 2437/5191 - Release Date: 08/10/12

Jamie

unread,
Aug 10, 2012, 11:41:04 AM8/10/12
to mapi...@googlegroups.com
Nyall,

any chance you could upload a MapInfo V10 compatible version is there?

Jamie

unread,
Aug 10, 2012, 11:42:32 AM8/10/12
to mapi...@googlegroups.com
the one you have uploaded is only for MapInfo 10.5+

Nyall Dawson

unread,
Aug 10, 2012, 7:10:42 PM8/10/12
to mapi...@googlegroups.com
No worries -- give me a couple of days to clean up the code and I'll post the source.

Kind regards,
Nyall

Jamie

unread,
Aug 13, 2012, 3:53:19 AM8/13/12
to mapi...@googlegroups.com
that would be great

map1

unread,
Aug 13, 2012, 5:50:32 AM8/13/12
to MapInfo-L
Thanks for the input guys.

Nyall have you got any instruction for the alpha shapes tool? I just
gave it a go but got an error.

I managed to find a tool called Concave Hull Estimator for ESRI ArcGIS
that does the trick but id rather not have to keep swapping between
platforms.

http://resources.arcgis.com/gallery/file/Geoprocessing-Model-and-Script-Tool-Gallery/details?entryID=AA23C5C6-1422-2418-8811-1365253A756A

map1

unread,
Aug 13, 2012, 6:54:49 AM8/13/12
to MapInfo-L
Hi Nyall I keep getting the following error message

"(delaunay.mb.79) File convex_hull.dat not found. Unable to create new
table."

Im using mapinfo 11.5

Nyall Dawson

unread,
Aug 16, 2012, 6:25:30 AM8/16/12
to mapi...@googlegroups.com
This should be fixed now -- thanks for reporting.

I've uploaded new binaries for both 10.5+ and 8+ together with the source code here:

Hope it's of use to you!

Nyall

Jamie

unread,
Aug 16, 2012, 7:46:53 AM8/16/12
to mapi...@googlegroups.com
looks as though it still doesn't work with mapinfo v10
error.jpg

Nyall Dawson

unread,
Aug 16, 2012, 4:03:30 PM8/16/12
to mapi...@googlegroups.com
Is that using the version for MapInfo 8+? There's two versions, one is only for MapInfo 10.5 and above, the other should work in 8.5+.

Nyall

Jamie

unread,
Aug 16, 2012, 6:16:01 PM8/16/12
to mapi...@googlegroups.com
Ive tried both neither seem to work in version 10

Nyall Dawson

unread,
Aug 19, 2012, 7:38:30 AM8/19/12
to mapi...@googlegroups.com

On Friday, 17 August 2012 08:16:01 UTC+10, Jamie wrote:
Ive tried both neither seem to work in version 10

I must have messed up the compilation. Can you try this version please?

Nyall
alpha_shapes_85.MBX

Jamie

unread,
Aug 20, 2012, 4:40:50 AM8/20/12
to mapi...@googlegroups.com
Works perfectly now thank you!
Reply all
Reply to author
Forward
0 new messages