Skip to main content
Solved

How to Write features in a specific order / Hierarchy?

  • March 30, 2023
  • 3 replies
  • 303 views

galigis
Enthusiast
Forum|alt.badge.img+20

Hi Community,

 

I'm working on a workflow that needs to write a final Feature class based on a particular hierarchy. The workflow includes a few 'AreaOnAreaOverlayer' steps + ListConcatenator to indicate which parcel overlaps which, below a screenshot with the desired hierarchy:

1 - Most important parcels A

2- Middle important parcels B

3- Less important parcels C

 

Parcels hierarchy (A, B, C) 

I can't run dissolve + clip as need to keep the overlapping information to be 'listconcatenated' so decided to use a Sorter (alphabetical order) to obtain the desired order but isn't working 😞 as there's areas where the parcels C are on top of the parcels B.

 

Below an example where the overlap in the middle between 2 parcels (B + C) should be assigned to B but for some reason is C

Conflict between B and C categoriesThere must be a way to tell FME please write parcel A on top of parcels B and then parcels B on top of parcels C and parcels A on top parcels C.

 

A>B>C

 

Thanks a lot in advanced 🙂

Best answer by redgeographics

Normally speaking FME writes out features in the order they arrive at the writer. So if you use a Sorter right before writing your data you can influence which features get written first.

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

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • Best Answer
  • March 31, 2023

Normally speaking FME writes out features in the order they arrive at the writer. So if you use a Sorter right before writing your data you can influence which features get written first.


galigis
Enthusiast
Forum|alt.badge.img+20
  • Author
  • Enthusiast
  • 96 replies
  • March 31, 2023

Thanks @Hans van der Maarel​ for the answer, unfortunately the workflow works 95% ok but there're still some instances where the hierarchy doesn't work perfect. As I have different steams with different sorters along the workflow, do you recommend to have a single Sorter right at the of the writer? I think have tried this option already with no luck.


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • March 31, 2023

Thanks @Hans van der Maarel​ for the answer, unfortunately the workflow works 95% ok but there're still some instances where the hierarchy doesn't work perfect. As I have different steams with different sorters along the workflow, do you recommend to have a single Sorter right at the of the writer? I think have tried this option already with no luck.

Yes, a single Sorter right before the writer.