Skip to main content
Solved

How to Write features in a specific order / Hierarchy?


galigis
Enthusiast
Forum|alt.badge.img+16

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.

View original
Did this help you find an answer to your question?

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+49
  • Celebrity
  • 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+16
  • Author
  • Enthusiast
  • 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+49
galigis wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings