Hallo fang

I think your problem is (if I got it right) that you want to use
a list and compare it with plain attributes.

You need to either address a list attribute specifically as
serialNumber{1} or use the list_exploder before you merge.

Michael

fme_fang wrote:
> Hi all,
> I have a problem in using ReferenceFactory.The detailed codes in my 
> mapping file are as follows:
> 
> ¡­¡­
> FACTORY_DEF * ReferenceFactory                                 \ 
>    INPUT REFERENCER FEATURE_TYPE featureA                      \
>    INPUT REFERENCEE FEATURE_TYPE featureB                      \    
>    REFERENCER_FIELDS serialNumber{}                            \
>    REFERENCEE_FIELDS SN                                        \
>    REFERENCE_INFO ATTRIBUTES                                   \   
>    OUTPUT COMPLETE FEATURE_TYPE       completefeatA            \
>    OUTPUT INCOMPLETE FEATURE_TYPE     incompletefeatA          \
>    OUTPUT REFERENCED FEATURE_TYPE     referedfeatB             \     
>    OUTPUT UNREFERENCED FEATURE_TYPE   referedfeatB  
>    
> ¡­¡­
> 
> Some attributes of the REFERENCER features are listed in the 
> following,
> 
>   Feature Type  :     `featureA'
>   ¡­¡­
>   Attribute(string) : `serialNumber{1}' has value `276'
>   Attribute(string) : `serialNumber{2}' has value `639'
>   ¡­¡­
> 
>   Feature Type  :     `featureA'
>   ¡­¡­
>   Attribute(string) : `serialNumber{1}' has value `369'
>   Attribute(string) : `serialNumber{2}' has value `1900'
>   ¡­¡­
> 
> and that of the refrence features are as follows, restpectively:
> 
>   Feature Type  : `    featureB'
>   Attribute(string) : `SN' has value `7'
>   ¡­¡­
> 
>   Feature Type  : `    featureB'
>   Attribute(string) : `SN' has value `276'
>   ¡­¡­
> 
>   Feature Type  : `    featureB'
>   Attribute(string) : `SN' has value `639'
>   ¡­¡­
> 
> It is strange that I have such total results:  0 Complete Features, 0 
> Incomplete Features, 0 Referenced Features, 575 Unreferenced 
> Features, 2 Referencer Features (NO REFERENCES), 0 Referencee 
> Features (NO Referencee fields defined), and 0 Duplicate Referencee 
> Features.
> 
> Why the number of Complete Features is 0 instead of 1? 
> In addition, whether the list attribute serialNumber{} specified to 
> the REFERENCER_FIELDS is wrong?
> 
> Any advice gratefully received.
> 
> fang
> 
> 
> 
> 
> 
> 
> 
> 
> 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
> 
> 
> 
>  
> 
> 
> 
> 
> 

-- 
      //   \\   Michael Habarta: Munich/Bavaria/Germany
     //     \\    Mail office: <mailto:[EMAIL PROTECTED]>
    //=======\\     Mail priv: <mailto:[EMAIL PROTECTED]>
   // \/|   | \\     Homepage: <http://people.freenet.de/mhabarta>
  //    |   |  \\       Motto: Romans 8:28




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