Hi, sorry, i have to return to home, no much time to finish that. But tchek
the general idea of this portion of code. If you want, re-send me a mail and
i'll explain more...

Sorry for my ban english...

Dim p1,p2,line as Object
////////////////////////////////////////////////////////////////////////////
////////////////////////////////
///// insert code here for the table lineTable become mappable
////////////////////////////////////////////////////////////////////////////
////////////////////////////////

Fetch First From lineTable
Do Until EOT(lineTable)
    Select * From pointTable
        Where pointTable.point = lineTable.Start OR pointTable.point =
lineTable.Stop
    Fetch First From Selection
    /////i suppose that for each line they always are two point in the other
table
    p1 = Selection.obj
    Fetch Next From Selection
    p2 = Selection.obj
    line = CreateLine(ObjectGeography(p1,OBJ_GEO_POINTX),
                                    ObjectGeography(p1,OBJ_GEO_POINTY),
                                    ObjectGeography(p2,OBJ_GEO_POINTX),
                                    ObjectGeography(p2,OBJ_GEO_POINTY))
    /////////////////////////////////////////////////////////////
    ///insert code here for update object in lineTable
    //////////////////////////////////////////////////////////////
    Fetch Next From lineTable
Loop

___________________________________

||    //            Antoine Gilbert
||   //              [EMAIL PROTECTED]
||  //                #ICQ 9737371
||  \\
||   \\        Le Groupe KOREM Inc.
||    \\      http://www.korem.com

3360, rue de La Perade, bureau 200
Sainte-Foy (Qc)   CANADA   G1X 2L7
___________________________________

----- Original Message -----
From: Snashall, Scott <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 22, 1999 3:42 PM
Subject: MI drawing a line between 2 points within a point table


>Hello all,
>
> I have a quick question
>
>I have a line table with no map objects on it that I would like to
>automatically digitize from data with an existing table
>
>
>Ie  My line table(has not object data, like a spreedsheet) would have two
>fields, one called start and the other called stop.
>
>    Rowid    Start             Stop
>      1         A1                A2
>      2         A1                    A4
>      3         A2                    A3
>      4         B1                    A1
>      5         B2                    B3
>
>I would like to automatically digitize this from object information that I
>have in a point table
>
>Ie
>
>Row ID   point
>   1              A1
>   2              A2
>   3              A3
>   4              A4
>   5              B1
>   6             B2
>
>Thus a line object would be digitized from point A1 to A2 as well as from
A1
>to A4. I am not concerned with line routing but I am concerned with
>connectivity
>Your help is appreciated.
>
>thanks
>
>
>Scott Snashall
>Documentation specialist
>Metronet/AT&T
>403-705-6223
>[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>----------------------------------------------------------------------
>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
>

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to