Skip to main content
Solved

Is it possible to exclude keys already present in a table from a second table before performing translations on that second table?

  • August 26, 2020
  • 3 replies
  • 34 views

stefanforch
Participant
Forum|alt.badge.img+2

In my data, I have 3 Oracle tables (numbered for ease of explanation);

1) a spatial table with geometries of tubes used as casings for HV-cables

2) a spatial table with the geometries of the actual HV-cables

3) a non-spatial table with the connection between the tubes and the cables they contain (essentially displaying which key(s) in table 1 is(/are) matched to which key(s) in table 2

 

What I'm interested in is isolating the tubes which have a cable running through (/on top of) them based on a spatial analysis, but aren't yet connected in table 3. Therefore, I'm looking to exclude all tubes with a key present in table 3 from table 1 before progressing with the other translations (which are going well), but I'm not getting anywhere with Matcher. Is there any other transformer to use here?

Best answer by david_r

One possible solution is to use the FeatureMerger and look at the output from the UnmergedRequestor port. You can do this either before or after doing the spatial matching.

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

david_r
Celebrity
  • 8392 replies
  • Best Answer
  • August 26, 2020

One possible solution is to use the FeatureMerger and look at the output from the UnmergedRequestor port. You can do this either before or after doing the spatial matching.


jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • August 26, 2020

One possible solution is to use the FeatureMerger and look at the output from the UnmergedRequestor port. You can do this either before or after doing the spatial matching.

Agreed, but I would suspect before the spatial matching would give better performance.


david_r
Celebrity
  • 8392 replies
  • August 26, 2020

Agreed, but I would suspect before the spatial matching would give better performance.

Agree, in particular if you can get rid of a consequential amount of data this way.