Roland, Hans Van, and all of you Hello In fact ( in my case) arcs can have any sweep angle. More generally, what Im calling arcs could also be lines. Meanwhile, in my workbench, Im using a GeometryFilter to be sure Im getting arcs as output from the source data set. Maybe, I did a mistake when I talked about finding centers. What Id like to say is really finding out the middle of arcs (or lines): the point (middle of the arc) should be on the arc. Ill try methods mentioned in your messages, both of you guys. I was thinking about using the Bufferer transformer (this gives me an area with symmetrical form), then, using other transformer (something like InsidePointReplacer) I (hope I ) can the get the middle of the arc
Ill try it also tomorrow in the office and Ill give you a feed back. Thanks.. ----- Original Message ---- From: Hans van der Maarel <[EMAIL PROTECTED]> To: [email protected] Sent: Saturday, February 24, 2007 1:25:28 PM Subject: Re: [fme] CenterFinder question abel.ludba wrote: > > > 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? Hmmm... Interesting question... Off the top of my head, I would try stroking the arc (ArcStroker) and then using a CenterOfGravityRepl acer to get the center of gravity (tip: I've created a CenterOfGravityFetc her and CenterPointFetcher custom transformers, see attached). If your arc has a 360 degree sweep, the middle coincides with the centerpoint (or center of gravity). Probabely holds true for any sweep larger than 270 degrees, but anything smaller you get the discussion about what exactly is the center of an arc... -- Hans van der Maarel Red Geographics Zevenbergsepoort 44b www.redgeographics. com 4791 AE Klundert [EMAIL PROTECTED] .com The Netherlands phone: +31-168-401035 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
