Skip to main content
Solved

How to delete geometries in a layer, so that only one is left?

  • February 20, 2023
  • 2 replies
  • 19 views

Forum|alt.badge.img

I have one feature, which has two geometry points with text location. I only need one of them. Is there a possibility in FME to delete every geometry, except one?

image

Best answer by ebygomm

You can also use a GeometryPartExtractor to just keep the first part (index starts at 1 so 1 is part 0 in your screenshot)

In the advanced editor

number(/geometry/geometry[1]/@fme_id)

 

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

2 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • Best Answer
  • February 20, 2023

You can also use a GeometryPartExtractor to just keep the first part (index starts at 1 so 1 is part 0 in your screenshot)

In the advanced editor

number(/geometry/geometry[1]/@fme_id)

 


david_r
Celebrity
  • February 20, 2023

You could try a Deaggregator followed by a Tester checking for _part_number = 0.


Reply


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