--- In [email protected], Hans van der Maarel <[EMAIL PROTECTED]> wrote:
>
> Hello Gunter,
>
> > Is there an easy way to take a list of attributes on one feature
and
> > their corresponding values and combine it into a string?
> > For example a feature has:
> > attr1 'value1'
> > attr2 'value2'
> > attr3 'value3'
> > and I want his to turn this into a string useable in a where
clause
> > something like:
> > whereClause: 'ATTRIBUTE_NAME IN (attr1,attr3)'
> >
> > ignoring attributes whos value = 'value2'.
>
> Well, if it's just for selecting, you can actually do that in a
Tester
> (http://fmepedia.com/index.php/Tester) by entering multiple
criteria.
>
> Combining strings can be done with the Concatenator
> (http://fmepedia.com/index.php/Concatenator)
>
> --
Hi Hans,
Thanks for that but I was actually after concatenating the
attribute 'name' rather than the attribute 'value'. I am not aware
how this can be done with the concatenator.
also, I only wanted to concatenate the attributes name if the
attribute value equalled a certain value.
The end result of a tester is a pass/fail on the whole object, where
what I am after is the object to continue through, but only keep the
attributes whose values pass.
I might just try a different approach to the problem.
Thanks
Gunter
Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver BC
Canada. For more information, visit www.safe.com/2006uc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/fme/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/