Could a solution lie in the Data Disagregation tool?

That is how I remove holes within poly's, it just creates a new poly or poly(s)
from the holes.

Just a quick test from the MB window in MI:

Objects Disaggregate All Into Table [Table you're working in] Data
Description=Description,COL1=COL1,COL2=COL2

Seems like that could be tweeked into what you're after.

David Reid



-----Original Message-----
From: B. Thoen [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 20, 2004 1:23 PM
To: Erin Rubio
Cc: [EMAIL PROTECTED]
Subject: Re: MI-L filling in open holes within a polygon


On Sun, 20 Jun 2004, Erin Rubio wrote:

> I have a polygon with a few holes in the middle that I'd like to 
> automatically fill in using a MapBasic command.

The first segment in a region is *usually* the outer polygon, and so you could
just remove nodes from the subsequent segments until you get down to two nodes
on each hole and it disappears. This would effectively "fill" the outer polygon.

However, you have to make sure that the sub-regions you're deleting are actually
inside the outer polygon and not separate outside polygons. You'd also have to
make sure that the first segment really is the outer polygon.  
I don't think you can rely on MapInfo doing anything particularly intelligent
with regard to implied topology using node order.

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



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

Reply via email to