Skip to main content

So I have multiple AttributeValidators and one Geometry Validator which creates a report from the failed features. What I need to do is have FME search through point features and report which features do not "Touch" another polyline feature class. If they do not then add those features to the report. Is there a way to set that up in the GeometryValidator?

So add to my existing report the point features that are not touching a certain line feature.

I think you are probably looking for the spatial filter, input both the points and lines through your separate input ports and test with the spatial operator touch. Those that come through the failed port you can add them to your report as failing your geometry test.


I think you are probably looking for the spatial filter, input both the points and lines through your separate input ports and test with the spatial operator touch. Those that come through the failed port you can add them to your report as failing your geometry test.

Thanks @ciarab. So after they features pass through the failed port how would I go about merging the features with the other failed features with an additional failure message?

Example of workspace.

Here is an example of my report so far.


@madwarren Looks good so far. Do you need to join them back to the other failed features? You could just join them straight into report as a new record with the same id. As you already have multiple failures on attributes so you have duplicate records listed. You could just add new record with different failure message.

If you do need to add the spatial fail onto existing record I'd just continue as you already did and use the feature merger. Bring it through the spatial relator fail and use the attribute manager to add new attribute and hard code a failure message like failed spatial test and merge it back to your original using your I'd. Just be careful not to lose any data for example if it failed the spatial test but didn't fail the Geom and attribute then is won't merge back. But I can see you already accounted for that when you joined the Geom and attribute fails. So looks like you are nearly there


Reply