Skip to main content
Solved

Export results of spatial filter in a text file

  • June 6, 2016
  • 2 replies
  • 18 views

Forum|alt.badge.img

Hello!

I use spatialfilter to know if 2 layers match each other. I would like to be informed if they match or not

and export the result in a text file such as: "6 entities of layer A doesn't match layer B".

I guess it's possible to do this with FME by including a SQL query but I don't know wich transformer or structur I should use?

Thanks for helping me

Hugo

Best answer by pratap

Hi @hgoroger,

Yes... After spatialfilter you have to place tester by using the attribute which you have defined under Predicate Attribute and filter the features. At this stage you will get all the features either passed/failed.

You can custom the results based on your requirement if you want only one line in txt file by the count then you have to use statistics calculator (for counting) and StringConcatenator to custom your message and connect to txt writer.

Hope this helps

Pratap

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

pratap
Contributor
Forum|alt.badge.img+12
  • Contributor
  • Best Answer
  • June 6, 2016

Hi @hgoroger,

Yes... After spatialfilter you have to place tester by using the attribute which you have defined under Predicate Attribute and filter the features. At this stage you will get all the features either passed/failed.

You can custom the results based on your requirement if you want only one line in txt file by the count then you have to use statistics calculator (for counting) and StringConcatenator to custom your message and connect to txt writer.

Hope this helps

Pratap


Forum|alt.badge.img
  • Author
  • June 6, 2016

Hi @hgoroger,

Yes... After spatialfilter you have to place tester by using the attribute which you have defined under Predicate Attribute and filter the features. At this stage you will get all the features either passed/failed.

You can custom the results based on your requirement if you want only one line in txt file by the count then you have to use statistics calculator (for counting) and StringConcatenator to custom your message and connect to txt writer.

Hope this helps

Pratap

Thanks for this quick answer :)