Skip to main content
Solved

Geometry Validator and Attribute Validator Question


cwarren
Forum|alt.badge.img

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.

Best answer by ciarab

@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

View original
Did this help you find an answer to your question?

3 replies

ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • July 28, 2016

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.


cwarren
Forum|alt.badge.img
  • Author
  • July 28, 2016
ciarab wrote:

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.


ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • Best Answer
  • July 29, 2016

@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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings