Skip to main content

Hi,

I try to find the midpoint of a line using the Snipper transformer, but some of my features are rejected. The fme_rejection_code is INVALID_GEOMETRY_TYPE. I think it is because of the IFMEMultiCurve. How can I solve this?

Willy

Try using a GeometryRefiner before the Snipper and see if that helps.


@david_r: Adding the GeometryRefiner makes no difference.


Can you save a single such feature in an FFS file and post it here for testing? You can either use the FFS writer or the Recorder transformer for this.


Hi @willyb, if the entire shape of the MultiCurve geometry is a single polyline, you can decompose the MutiCurve into individual Line parts with the Deaggregator and then combine the parts into a single Line geometry with the LineJoiner.

Note: The LineJoiner has been renamed to LineCombiner in FME 2017.


try geometryextractor and then replacer.


Reply