Skip to main content

Hi people,

 

 

I need to filter polygons, polygons with holes and multipolygons from GML source set. I tried GeometryFilter and MultipleGeometryFilter but it seems not working as I want.

 

In 2710 features I know that two are multies for sure. But, as you see, all of them are sent to only one port.

How to achieve this?

Hi,

 

 

Consider using the AggregateFilter to separate single-part polygons and multi-part polygons, and also the HoleCounter+Tester to filter polygons having hole(s).

 

 

Takashi
Thanks Takashi.

Takashi,

 

 

I have problem with this. All features go on aggregate port.

For making this GML file I aggregate polygons based on one attribute to create multies. But just few of them are multies for real. Why does all features go on aggregate port if they are single polygons?

Thanks in advance!


Possibly the polygons are multi-part polygons having just one part.

 

Check the number of parts with the PartCounter. You can then transform the one-part aggregate polygons into "real" single-part (non-aggregate) polygons with the Deaggregator.
Works perfectly! Thanks.

Reply