Thanks Jason! That helped a lot. I now have the first method working.
I still need to implement the intersection extraction, though. In a
few places my nearest vertex is rather far from the intersection point. 

Thanks again,
Thom

--- In [email protected], "Jason Birch" <[EMAIL PROTECTED]> wrote:
>
> Hi Thom,
>  
> You could run a CoordinateFetcher on the points layer before the
NeighborFinder, and then a 2DPointReplacer or 3DPointReplacer after? 
Alternately you could do the same with the OGC geometry transformers.
>  
> The second item is a bit harder.  I can think of a few ways of
solving it, I think that this is the easiest:
>  
> - Run a copy of the lines through a TopologyBuilder
> - Take the Nodes output and run it through a ListElementCounter on
node_angle{}
> - Run that through a Tester, eliminating all nodes with < 2
node_angle list elements (< 3 if you expect pseudo nodes)
>  
> You could then optionally run that through a NeighborPairFinder on
the original lines with an extremely low tolerance to pull over any
attributes.  Or you could do it the hard but more accurate way, using
the arc_id attributes in the node list to join to the lines output of
the TopologyBuilder.
>  
> Jason
> 
> ________________________________
> 
> From: [email protected] on behalf of Thom DeCarlo
> Sent: Thu 2006-09-07 4:11 PM
> To: [email protected]
> Subject: [fme] How to find nearest feature?
> 
> 
> 
> This should be a no-brainer, but I guess I'm the one with no brain.
> 
> (I'm using FME Workbench build 2616)
> 
> I have a cloud of points. I also have a single line. I want to extract
> the single point that is the closest to the line.
> 
> NeighborFinder is almost what I want. I feed it the line as the Base
> and the cloud of points as the Candidates. It does find the nearest
> point, but instead of outputting that point, it appends the point's
> attributes onto the line and outputs the line.
> 
> A variation of the same problem: I have two 2D lines and I want to
> extract their point of intersection as a 2D point.
> 
> Can somebody help me out here?
> 
> Thanks!
> Thom
>










Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver BC 
Canada. For more information, 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