What I've tried so far is to use two GeometryValidator transformers. The first one is set to remove Duplicate Consecutive Points and repair the geometry. The second is set to check for "Contains Null Geometry Parts" and "Degenerate or Corrupt Geometries" and to NOT repair the geometry.
The problem with this approach is that while is captures those linear features that resolve to just one distinct coordinate as FAILED, it also flags those features that would be valid if the segment with the single distinct coordinate were removed from the geometry. If I allow the second GeometryValidator to repair the geometry, it gives me a point geometry for the feature with only one segment which I want flagged as an error.
I'm now thinking I need to write a Python script to analyze the geometry between the two GeometryValidator transformers to remove any segments that contain only one distinct coordinate. This will leave a Null geometry for those features that just contain one segment with one distinct coordinate, but should leave a valid geometry in those features that have at least one valid linear segment.
Is there any way to perform what I'm wanting to do without writing a Python script?
Any suggestions would be appreciated!
Thanks,
Steve