Hi

rather than manipulating teh geometry you should be able to calculate the 
mid point with the parameters fme use to defien a arc

below is a tcl function doing this, alterantivly you can use the @Evalaute() 
to do the same

If you have any quistions to the script please mail them to the list

proc getMidPoint {} {
     set x  [FME_Coordinates getCoord x 0 ]
     set y  [FME_Coordinates getCoord y 0 ]
     set a  [ expr ([ FME_GetAttribute fme_start_angle] +  \
                   ([ FME_GetAttribute fme_sweep_angle] * 0.5  )) * 
atan2(0,-1) / 180 ]
     set dx [FME_GetAttribute fme_primary_axis ]

     set mx  [expr { $x + ( $dx * cos( $a ))} ]
     set my  [expr { $y + ( $dx * sin( $a ))} ]

     FME_Coordinates  resetCoords
     FME_Coordinates  addCoord $mx $my
     FME_Coordinates  geomType fme_point
     FME_SetAttribute fme_type fme_point
}


peter

>From: "abel.ludba" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [fme] CenterFinder question
>Date: Sat, 24 Feb 2007 04:35:25 -0000
>
>Hello everybody,
>
>This should be a newbie question.
>I'm working with a DXF file: especially with to lines and arcs layers.
>As a result, I must store the coordinates of each segment's center in a
>CSV file. So, I'd like to know how I can find out centers (the middle)
>of arcs. The CenterPointReplacer gives only the center of the bounding
>box.
>Could you help please?
>
>Abel..
>

_________________________________________________________________
Download din yndlingsmusik på MSN Music:  http://www.msn.dk/music  det er 
nemt og billigt



For insights into what's up at Safe Software and what's on the development 
horizon, visit Safe's blog at spatial-etl.blogspot.com.

Safe Software has also made slides available that outline enhancements planned 
for FME 2007. The slides are from the "Road Ahead" presentation given on Day 2 
of the FME Worldwide Users Conference. To view these slides, 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/
 

Reply via email to