Solved

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

  • 20 February 2023
  • 2 replies
  • 0 views

Badge

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

icon

Best answer by ebygomm 20 February 2023, 14:26

View original

2 replies

Userlevel 1
Badge +10

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)

 

Userlevel 4

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

Reply