AnsweredAssumed Answered

Fixed number of split?

Question asked by ryu@aditazz.com on May 18, 2017
Latest reply on May 30, 2017 by TFuchs-esristaff

Hi,

 

Is there a way to specify the exact number of times a shape is split?

 

For example (from the manual):

A--> split(x){ 2 : X(2) | 1 : Y(1) }*

will give as many of the "2 1 2 1 ..." pattern as can fit.

 

But what if I want to have exactly 3, as in "2 1 2 1 2 1" and leave the rest of the shape unused?

I can always do:

A--> split(x){ 2 : X(2) | 1 : Y(1) | 2 : X(2) | 1 : Y(1) | 2 : X(2) | 1 : Y(1) }

But I want the number of times to repeat to be an attribute.  Something like:

A--> split(x){ 2 : X(2) | 1 : Y(1) } * repeat

 

Thanks!

 

Outcomes