I have a table with thousands of Line and Pline objects. Some of them are to
be connected to their neighbours (and the line redrawn as a single line), as
they are only the results of bad drawing and should have been single lines
from the beginning.
My idea is to find the starting point of a line. Search the surrounding area
for the starting point (or ending point) of another line. If found, join the
lines and redraw as one line, erase the old lines. Pack the table, start
again. If no neighbours are found at the starting point, go to the end point
and search. If found, connect, redraw, etc. Then the next object, and loop
'till EOT...
I'm new at MapBasic programming, but it does look a bit slow, doesn't it?
Approx 100 files with 30000 objects each.
Anybody out there who has done this already, or do I have to go MapBasic
myself? Any ideas to help me out?
sincerely / Cris
----------------------------------
Christian K�fling
Telia Research AB
Vitsandsgatan 9
S-123 86 Farsta
Sweden
tel +46 8-713 51 49
mobil +46 70-580 75 19
fax +46 70-617 52 19
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]