Hi Fang

I think your code are ok, but you miss 2 thing to get it into your 
destination format

first add the attriubte / value fme_type fme_arc to your features uset this 
syntax @SupplyAttributes(fme_type, fme_arc)

second you have to 'translate' the system attributes (attributes starting 
with fme_ ) into the destination format for this you have to use the 
@Transform(FME_GENERIC,<destFormat>). If you translate to MapInfo this 
function will translate alle the fme_ attriubtes into mapinfo_ attributes

also note there has to be a matching _DEF line to your featur type in case 
the format needs one ( ex. MapInfo FM0 )

About the creation factory, just use the same functions as below to modify 
the feature when you have created it


Peter Laulund


>From: "fme_fang" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [fme] How to generate circular arc?
>Date: Fri, 18 Nov 2005 13:55:27 -0000
>
>Hi all,
>I'm trying to generate two circles that regard one node of a line
>segment as center point respectively,using the follwing statements in
>my mapping file.
>
>¡­¡­
>FACTORY_DEF * TeeFactory                                          \
>FACTORY_NAME "Get Line Segment Nodes"                             \
>INPUT FEATURE_TYPE line                                           \
>OUTPUT  FEATURE_TYPE line_1                                       \
>    x @Coordinate(x,0)                                             \
>    y @Coordinate(y,0)                                             \
>    @SupplyAttributes(z,0)                                         \
>OUTPUT  FEATURE_TYPE line_2                                       \
>    x @Coordinate(x,-1)                                            \
>    y @Coordinate(y,-1)                                            \
>    @SupplyAttributes(z,0)
>
>FACTORY_DEF * TeeFactory                                          \
>FACTORY_NAME "Create Circle"                                      \
>INPUT  FEATURE_TYPE line_1                                        \
>INPUT  FEATURE_TYPE line_2                                        \
>OUTPUT FEATURE_TYPE circles                                  \
>    @Dimension(2)                                                  \
>    @XValue(&x,RESET)                                              \
>    @YValue(&y)                                                    \
>    @GeometryType(fme_point)                                       \
>    @SupplyAttributes(fme_primary_axis,2)                          \
>    @SupplyAttributes(fme_secondary_axis,2)                        \
>    @SupplyAttributes(fme_rotation,0)                              \
>    @SupplyAttributes(fme_start_angle,0)                           \
>    @SupplyAttributes(fme_sweep_angle,360)
>
>FACTORY_DEF * RecorderFactory                                     \
>INPUT FEATURE_TYPE circles                                        \
>FEATURE_FILE "$(FME_MF_DIR)/temp.ffs"                             \
>MODE RECORD_PASS_THROUGH
>
>¡­¡­
>
>Though I could see the circles in the temp.ffs file with FME Viewer,I
>could not found them in the destination file.
>
>Why?
>
>In addition, how to generate circular arc using CreationFactory?
>
>Any help will be greatly appreciated.
>
>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
>
>
>
>
>
>

_________________________________________________________________
Få alle de nye og sjove ikoner med MSN Messenger http://messenger.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