Hi Peter,

--- In [email protected], "peter laulund" <[EMAIL PROTECTED]> wrote:
> 
> I have been playing with the new TCL2 function and have one quistion
> 
> how do you test if a attribute exists on a feature the FME_GetAttribute 
> function give an error if the attribute dont exists - is there an 
> FME_AttributeExists function or will I have to use the catch {}
command ?

I'll post something later that lists the details of the new function,
but in answer to this, the first betas that had @Tcl2 had the
unfortunate behaviour that getting an attribute that didn't exist
threw an exception.  Since we've rewritten our entire transformer set
to use @Tcl2, this caused a severe backwards compatibility problem.

So we fixed @Tcl2 so that if you do an FME_GetAttribute and the
attribute doesn't exist, it just returns a blank string.  To find out
what attributes are actually present, you can use the
FME_AttributeNames function, which returns a list of all the attribute
names. HOwever, an FME_AttributeExists function is an excellent idea
and I'll add that in and so later this week it should be in a beta.
 
> I can alsoe see in the watsnew.txt  that you have changede the
@Coordinate() 
> function so it will worke corectly on aggregates - by adding the 
> FLATTEN_AGGREGATE directive. How about the @XValue(), @YValue() and 
> @ZValue() are they also working corectly now or are they still giving 
> geometrytype, index as the first coordiante.


Only the @Coordinate function was changed, the @XValue family still is
"aggregate unaware" and will function as before.  We do not have plans
to change them either at this point.


> 
> Last I have testet the DSFL reader and it seems to worke the way I
want it 
> to, Thanks

Great news!

> 
> Peter Laulund
> National Surevey and Cadastre, Denmark
> 
> _________________________________________________________________
> Find alt det, du s�ger p� MSN S�g http://search.msn.dk





Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our 
Professional Services team.  Visit www.safe.com/services for details. 
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/
 



Reply via email to