Question

Creating a line between two Nodes

  • 24 November 2013
  • 2 replies
  • 0 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

2 replies

Userlevel 2
Badge +17
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
typo :((

 

 

Thanks it worked :)

Reply