[EMAIL PROTECTED] wrote:
> 
> I have been having troubles with MI calculating the centroids of polygons.
> For some reason some of the centroids are being put on the edges of the
> polygons instead of in the center.  If I convert the table to AV shape, then
> back to MI tab, the centroid function seems to work fine.  Any suggestions
> on what the problem could be would be greatly appreciated.  Is there a mbx
> that 'cleans' dirty tab files or am I missing something here?

Convert those regions to polylines and then back to regions, and
that will reset the centroids. This "squashing" of the centroid
against the end point is caused when you build polygons point by
point in MapBasic but don't specify the centroid location.
Usually you don't know where the centroid will end up before you
build a polygon, but you also have to specify the centroid
first... (muhaha!) So the solution is to build your region as a
polyline first then convert the object to a region, which makes
the centroid come out where it should. The problem may also be
caused by something else, but building regions with MapBasic is a
prime suspect.

-- 
- Bill Thoen
------------------------------------------------------------ 
GISnet, 1401 Walnut St., Suite C, Boulder, CO  80302
tel: 303-786-9961, fax: 303-443-4856
mailto:[EMAIL PROTECTED], http://www.gisnet.com/
------------------------------------------------------------

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

Reply via email to