Hi Roland...
--- In [email protected], "Roland Martin" <[EMAIL PROTECTED]> wrote:
>
> Hi Mark,
>
> Thanks for your reply - I think a few clarifications are in order!
>
> How are you doing this renaming in the custom transformer? It sounds
> > like you aren't using AttributeRenamer. Are you using TCL or
> > Python. I know that for TCL any attributes you create in the
> > script won't automatically appear in the workspace because there's
> > no way that Workbench can parse the TCL to find out what
> > attributes are created.
> >
>
> I just typed straight into an FMX file. Is that TCL? It was mainly
> AttributePrefixer it was based on.
Ah - a real "custom" transformer - I just assumed it was one created
through Workbench. So a lot of my last answer doesn't really apply.
> From the second half of what you say above, it looks as though it
> might not be possible - so why are some of FME's default
> transformers able to access this functionality?
As you say - other transformers expose attributes, so it is certainly
possible....
> > The attributes will be there (which is why you see them in the
> > Viewer) but just don't get automatically exposed in Workbench. If
> > this is the case then I think the AttributeExposer is your only
> > hope - though it could be a lengthy process to set up for many
> > attributes.
> >
>
> I believe that just exposes the ones you type into a list - I need
> something which works whatever the attribute value you type in.
>
> My function works fine if I route it to a visualiser; or if I do the
> whole operation in two FMWs (i.e. SHP -> SHP; SHP -> PostGIS or
> whatever); but neither of those is especially useful.
>
> > > More mysterious is that if you rename AttributePrefixer and try
> > > to use it, it loses that capability altogether. Presumably
> > > something is hardcoded somewhere else up the line.
> >
> > Not sure if I know what you mean - can you send an example?
>
>
This makes sense now I know how the transformer is created. Yes, I
think there is either some hard-coding, or there is another entry
elsewhere that you are missing.
>
> I'll freely admit that I'm messing with things I don't fully
> understand, which might not be too sensible, but it will be a bit of
> a nuisance if it's not possible.
I don't understand them either. I'll ask out Workbench expert to post
a quick message here to explain how things work.
> Anyway, thanks again for your help.
>
> Roland.
It was nothing. Actually it was nothing, but I think the most help I
could give is ask why you need to do things this way. If you need to
mess around with FME at this low level then we sort of assume that
we're at fault for not providing the functionality you need at a
higher level.
Mark
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/fme/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/