Dear FME community.
I would like to give ID to pair of attributes with FME like that :
Thank you for your help.
Dear FME community.
I would like to give ID to pair of attributes with FME like that :
Thank you for your help.
You can use the following expression in an attribute creator to calculate the ID_PAIR value
@Evaluate(10*@ceil(@Value(ID)/20))
You can use the following expression in an attribute creator to calculate the ID_PAIR value
@Evaluate(10*@ceil(@Value(ID)/20))
The numbers 10,20,30,40... are an example. In fact my numbers seems like 1760,2451,3210,4512... the most important is pair in order
The numbers 10,20,30,40... are an example. In fact my numbers seems like 1760,2451,3210,4512... the most important is pair in order
In which case, if you add a counter starting at 1, then follow it with a similar expression you can get pairs which have a common id
@Evaluate(@ceil(@Value(_count)/2))
Depending on your input format, their may already be a value you could use instead of adding the counter, e.g. row number if a csv file
In which case, if you add a counter starting at 1, then follow it with a similar expression you can get pairs which have a common id
@Evaluate(@ceil(@Value(_count)/2))
Depending on your input format, their may already be a value you could use instead of adding the counter, e.g. row number if a csv file
I don't know how can I make a counter with an ORDER BY clause...
I don't know how can I make a counter with an ORDER BY clause...
If your features are already in order, only the counter is needed. If you need to order them first, then you need to put a sorter before the counter
If your features are already in order, only the counter is needed. If you need to order them first, then you need to put a sorter before the counter
Great ! Thanks @egomm !