Skip to main content
Question

Draw a line between two nodes

  • November 12, 2013
  • 1 reply
  • 41 views

Hi there,

 

            I asked takashi this question previously but I failed to give him the whole story.

 

I have a Mapinfo layer that has a attibute called GPS_CODE that contains CVP1 SL, CVP1 EL and CVP2 SL, CVP2EL....... etc.  However there are duplicate CVP's. There might be ten lots of CVP2 SL and EL for example.  There is also a attribute called Crossing_ID that is the 'Parent' for each GPS_CODE.

 

 

What I need to do is to draw a line between CVP1 SL and CVP1 EL for example  in relation to their unique parent id.

 

So there will be numerous CVP1 SL and CVP1 EL with different parent id's of CL1 or CL2 or CL3. 

 

 

I hope I have explained well enough for a solution,

 

 

Cheers,

 

         Shane
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Celebrity
  • November 12, 2013
Hi again,   Just append the GPS_CODE to sorting and grouping attribute.   StringSearcher: Split the Code into 2 parts. Attribute: Code Regular Expression: ^(.+)(SL|EL)$ Matched Parts Attribute: _parts   Sorter: Sort the points by the Code (front part) and SL -> EL order. Attribute  |  Alpha/Num  |  Order GPS_CODE  |  Alphabetic  |  Ascending _parts{0}  |  Alphabetic  |  Ascending _parts{1}  |  Alphabetic  |  Descending   Point Connector: Connect points grouped by the Code (front part). Connection Break Attributes: GPS_CODE _parts{0}

 

 

Or, concatenate GPS_CODE and original Code before StringSearcher.

 

GPS#CVP# SL, GPS#CVPE EL ...

 

 

Takashi