Maybe this problem only occurs with a triangle ?? 
So if you added an extra point near one of the others and then removed it 
afterward MapInfo wouldn't place the centroid on the boundary.

Peter Horsbøll Møller
GIS Developer, MTM
Geographical Information & IT
 
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
 
Tel     +45 6311 4900
Direct  +45 6311 4908
Mob     +45 5156 1045
Fax     +45 6311 4949
E-mail  [EMAIL PROTECTED]
http://www.cowi.dk/gis

COWI har fået ny hjemmeside. Ydelserne GIS og IT, kort, kortlægning, 3D 
visualisering og arealforvaltning ligger under SAMFUND. Se mere her : 
www.cowi.dk

COWI has changed its homepage. Our services within cadastre and 
landadministration, geodataproducts, mapping and GIS can be seen under SOCIETY. 
See our services here: www.cowi.com


-----Original Message-----
From: Bill Thoen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 12, 2005 4:02 PM
To: MapInfo-L
Subject: SUM: MI-L How Do I Create A Centroid That's Always INSIDE a Region?


Ah ha! Tony got the answer! And this works for any shape.

On Tue, 12 Jul 2005, Photogrammetry GIU wrote:

> If your worries are only triangular, the best method is to buffer the 
> triangle inwards by a couple of metres or so, get the centroid of the 
> buffer and apply it to the original triangle.

Interestingly enough, when I buffer the region using -2 feet, the resulting 
buffer region looks barely different from the original, but the "centroid" 
actually appears near the center of the buffer. But even if it fell on the edge 
of the buffer, because the buffer is smaller than the original region, the 
buffer's centroid is still guaranteed to be inside the region.

Nice solution! Simple, quick, and it works.

- Bill Thoen



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com | To 
unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 17109



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 17119

Reply via email to