Skip to main content
Question

Creating a line between two Nodes

  • November 24, 2013
  • 2 replies
  • 19 views

Help!!!

 

I have an Attribute called 'GPS_Code' with values grouped like

 

CL10 ST

 

CL10 EL

 

CL2 ST

 

CL2 EL

 

CL8 ST

 

CL8 EL.........etc

 

I want to create a line string  between the ST and the EL but only for those with corresponding numbers.  So a line between CL10 ST and CL10 EL, for example.

 

Currently the result I'm gettting is lines joining willy nilly all over the place.

 

 

I am using StringSearcher

 

Attribute GPS_Code

 

Regular Expression:  ^(.+)(SL|EL)$

 

Matched Result Attribute: _matched_characters

 

Matched Pars Attribute: _matched_parts

 

 

with Sorter

 

_Matched_parts{0}         Alphabetic             Ascending

 

_matched_parts{1}        Alphabetic             Decending

 

 

and PointConnector

 

Parameters

 

Connection Break Attrbutes: _matched_parts{0}

 

List Name:

 

 

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.

2 replies

takashi
Celebrity
  • November 24, 2013
Hi,

 

 

CL10 ST CL10 EL CL2 ST CL2 EL ...   If there are not typos, the regular expression should be: Regular Expression:  ^(.+)(ST|EL)$

 

 

In addition, if there always is a white space between front and back part of the code, the AttributeSplitter can be also used instead of the StringSearcher. 

 

 

Takashi

  • Author
  • November 25, 2013
typo :((

 

 

Thanks it worked :)