Skip to main content
Solved

Filtering based on geometries

  • April 18, 2023
  • 3 replies
  • 21 views

fmesafe.podpora
Contributor
Forum|alt.badge.img+11

Hello. I have a question about one solution. I have duplicate points with the same name, but with at least different geometry. I need to filter these duplicate points relative to this one coordinate. Passed will be the point with the same name that is closer to this coordinate. I am attaching the fmwt. Thank you very much.

Best answer by DanAtSafe

Hi @fmesafe.podpora​ What is the name that should match? Will a NeighborFinder work for you? Group by the name, generate a list, then sort by _distance with a ListSorter.

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.

3 replies

DanAtSafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 344 replies
  • Best Answer
  • April 18, 2023

Hi @fmesafe.podpora​ What is the name that should match? Will a NeighborFinder work for you? Group by the name, generate a list, then sort by _distance with a ListSorter.


fmesafe.podpora
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 136 replies
  • April 19, 2023

Hi @danatsafe​  Thanks for the reply. I have point names that cannot occur more than once - attachment points_duplicity. I need to filter these points with the same name so that only one of them is output (the one that is closer to the created point - the output of the vertexCreator transformer). For example (in the attachment):

Point A1 and point A1 have the same designator (they have a duplicate name). Of these two points, only the one closer to the created point will be valid.

I need the same method for all 80 points - the point created is still the same.

I tried neighborFinder but _distance is the same for duplicate points - in fmwt.


fmesafe.podpora
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 136 replies
  • April 24, 2023

Hi @fmesafe.podpora​ What is the name that should match? Will a NeighborFinder work for you? Group by the name, generate a list, then sort by _distance with a ListSorter.

Hello DanAtSafe. I would like to ask, do you know how to solve the situation? I have tried to add more information below.

Thank you very much