Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

sequence Iterative Macros

Inactive User
Not applicable

Hello,

 

I am trying to isolate some specific road from Navteq Here street map Shapefile. Using the name field dosn't work, cause the same road change the name due to some administration roles.

 

Anyway, I have two sequence fields:  "REF_IN_ID" ==> the start node ID and

                                                           "NREF_IN_ID" ==> the end node ID which is the next "REF_IN_ID"

 

 

I am looking to make an iterative macro to find the next line object and to give him the name of the road and then using this object as a start line object for the next iteration.

 

Any recommendation?

I attached an example of the street file.

 

 

3 REPLIES 3
JordanB
Alteryx
Alteryx

HI @Inactive User

 

Would you mind providing a little more context  around "I am looking to make an iterative macro to find the next line object and to give him the name of the road and then using this object as a start line object for the next iteration"

 

What is the desired output look like?

 

Best,

 

Jordan Barker

Solutions Consultant 

 

 

 

 

Inactive User
Not applicable

Hi JordanB

 

actually I am looking forward to isolate the object of the same road. I am trying to use the sequence fields to reach that. each object has start ID and end ID. 

 

1 - The Idea is identifying the start point "done" 

2- follow the sequence tell the end point

 

For doing that i am looking for joining the starting object (line object with in an out ID) with the  street data base 

 

 

Capture.JPG

 

Once I identified the next object iI need to add a new field "name field" ==> the name of the road (ex:N3)

 

then using this last object as a new start object to find the next part of the road and add it to my output with the name field...

 

the output must look like that 

 

Capture 2.JPG

 

Thanks,

 

Amr Mansour

Inactive User
Not applicable

Hello,

 

Finally i found a solution for my problem. A simple iterative macro with 2 outputs:

 

- 1st Output the next start section 

- 2nd Output and accumulate the sections form the same street (according to my conditional statements)

 

Itiration.JPG

 

Using these macro helped me to traced one street even if the name change. 

 

regards

Amr


Labels