Skip to main content
Solved

Combining geometries

  • February 21, 2022
  • 6 replies
  • 29 views

raimond
Contributor
Forum|alt.badge.img+4

I have Table1 with the attributes "code start" and "code end".

Table2 contains a code and geometry.

 

Now I need the geometries conmbined from al codes that are between "code start" and "code end".

 

Examples:

Id 1 will get only the gemoetry of code 6371 AB

id 3 will get the geometries of code 6371 AP and 6371 AR combined

Id 5 will get the geometries combined of all codes between 6371 BA and 6371 BD

 

Best answer by geomancer

Use an InlineQuerier to add the ID's (and the Start and End Codes) from Table 1 to Table 2, then dissolve the geometries from Table 1 on ID.

Postal_Codes

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.

6 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • February 21, 2022

Hi @raimond​ 

 

Could you try use the transformer AttributeRangeMapper?

 

 

Thanks in Advance,

Danilo


raimond
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 12 replies
  • February 21, 2022

Hi @raimond​ 

 

Could you try use the transformer AttributeRangeMapper?

 

 

Thanks in Advance,

Danilo

Hi Danilo,

 

Table1 is just an example, the real table contains 235.000 records.

Table2 contains 31.000 records,.

The AttributeRangeMapper is not really an option in this case I guess.


geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • Best Answer
  • February 21, 2022

Use an InlineQuerier to add the ID's (and the Start and End Codes) from Table 1 to Table 2, then dissolve the geometries from Table 1 on ID.

Postal_Codes


takashi
Celebrity
  • 7843 replies
  • February 21, 2022

Hi @raimond​ , here is another approach with no coding.


raimond
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 12 replies
  • February 22, 2022

Hi @raimond​ , here is another approach with no coding.

Unfortunaly we use FME 2020, si I can't use this solution.

Maybe if we upgrade later.

Thanks anyway.

 


raimond
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 12 replies
  • February 22, 2022

Use an InlineQuerier to add the ID's (and the Start and End Codes) from Table 1 to Table 2, then dissolve the geometries from Table 1 on ID.

Postal_Codes

Thank you, the InlineQuerier works great.

This is what I was looking for.