Cool solution Mark.

If the 100m spacing is a guideline rather than a specific requirement,
it might be desirable to keep selective original point features.

You should be able to do this by running a NeighbourFinder with the
generated points as the base and the original points as the candidates.


You may also want to consider using a NeighbourPairFinder.  Ideally,
original points would only be identified by a single generated point,
but if not you could either choose to just live with the lack of
density, or with the NeighbourPairFinder test to see if the second
identified point was not identified by another base feature and use that
instead.

In either case, you would want to either use the Matched output to
create new copies of the original features (from the _x and _y
attributes), or use a FeatureMerger to copy some kind of "matched" flag
back to the original features for filtering through a Tester or
something similar.

Hmm.  Sorry for the Canadian spelling on the transformers.  I understand
Safe's business decision, but it drives me nuts :)

Jason

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
mark2atsafe
Subject: [fme] Re: Thinning points

To do it spatially.... let's see. How about this? 

1) Use AttributeCreator to create a constant attribute for all points.
2) Buffer every point feature using the Bufferer (say size=100) - use
the constant attribute as a Group-By.
3) Then take the resulting buffer polygon and use the centreline
replacer. Now you have a single line representing the rail route.
4) Use the Labeller to create a label every 100m. Set offset=0.
5) Now change the labels to plain point features by exposing fme_type
and setting it to a value of fme_point
6) If there were source attributes on the original points use a
PointOnPointOverlayer to attach them to the new points.




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/
 


Reply via email to