Hi Fang.

Try using FME Workbench, I'v attached a Workspace (made in build 2152, a
recent beta at ftp.safe.com/fme/beta) that generates a circle and outputs it
to ESRI Shape and FFS-files.
The result is also directly sent to FME Universal Viewer.

If you still want to do your final coding in a texteditor, just save the
workspace as an fme-file (File - Save As...) and it will be ready for
editing in any text-editor.

Good luck!

/Nisse


-----Ursprungligt meddelande-----
Från: [email protected] [mailto:[EMAIL PROTECTED] För fme_fang
Skickat: den 18 november 2005 14:55
Till: [email protected]
Ämne: [fme] How to generate circular arc?

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



 




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/
 

Attachment: none2multi.fmw
Description: Binary data

Reply via email to