Hi,

Did you try with LabelPointReplacer.

From help text of LabelPointReplacer:
"... If the feature was a line, it is turned into a point text feature *at the midpoint of the line,* with a rotation parallel to the line."

Regards,
Miso


Abel Ludba wrote:

Roland, Hans Van,  and all of you… Hello…

In fact ( in my case) arcs can have any sweep angle. More generally, what I’m calling arcs could also be lines.

Meanwhile, in my workbench, I’m using a GeometryFilter to be sure I’m getting arcs as output from the source data set.

Maybe, I did a mistake when I talked about finding centers. What I’d like to say is really finding out the middle of arcs (or lines): the point (middle of the arc) should be on the arc.

I’ll 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…

I’ll try it also tomorrow in the office and I’ll 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 <mailto:hans%40redgeographics.com>
The Netherlands phone: +31-168-401035



------------------------------------------------------------------------
The best gets better. See why everyone is raving about the *All-new Yahoo! Mail.* <http://us.rd.yahoo.com/evt=40705/*http://mrd.mail.yahoo.com/try_beta?.intl=ca>

------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.3/700 - Release Date: 24.2.2007 20:14

Reply via email to