Solved

Merge polygons with common value

  • 11 May 2023
  • 9 replies
  • 175 views

Badge

Greetings,

I want to merge a number of polygons that share a common attribute value. I currently have 552 polygons.

The Dissolver transformer outputs:

Area: 540

Remnants: 50 (Interior_Line)

 

The ListBasedfeatureMerger outputs all as errors??

 

Any assistance appreciatedFme-output 

icon

Best answer by clives_online 18 May 2023, 16:26

View original

9 replies

Userlevel 2
Badge +17

Hi @Clive Swan​,

It looks like you may have multi-polygons in your source data. The Dissolver will de-aggregate the multi-polygons before dissolving, which can result in a higher polygon count. If you add an Aggregator after the Dissolve with the Group By set to the same attribute used in the Dissolver, it will rebuild the appropriate multi-polygons for you.

Badge

Hi Dave,

Thanks for the reply.

I have two polygons, want merged into a single polygon, They are two separate records not a multi-polygon.

I am trying to do a union, to merge the two features.

image 

I added an Aggregator to the Dissolver, it outputs 4 polygons, not one.

imageI am trying to aggregate duplicate polygons, with their attributes.

Not sure what is wrong??

image 

image image 

Badge

I updated the Transformers.

522 records are aggravated into 311 records.

310 get inserted into the ESRI fgd, but one record fails??

 

imageAny suggestions how to insert the record that fails??

 

image.pngimage.png 

Userlevel 2
Badge +17

I updated the Transformers.

522 records are aggravated into 311 records.

310 get inserted into the ESRI fgd, but one record fails??

 

imageAny suggestions how to insert the record that fails??

 

image.pngimage.png 

Try moving the GeometryFilter and GeometryValidator before the Aggregator.

Badge

Hi Dave,

Thanks for the suggestion.

 

I moved the GeometryFilter and GeometryValidator before the Aggregator.

310 Records are processed, but one keeps failing??

 

I am getting a warning at the GeometryCoercer-Multi Transformer.

GeometryCoercer: Cannot coerce from IFMEAggregate to fme_multi

 

 

Userlevel 2
Badge +17

Hi Dave,

Thanks for the suggestion.

 

I moved the GeometryFilter and GeometryValidator before the Aggregator.

310 Records are processed, but one keeps failing??

 

I am getting a warning at the GeometryCoercer-Multi Transformer.

GeometryCoercer: Cannot coerce from IFMEAggregate to fme_multi

 

 

Try sending the problem feature to a Logger, then examining the geometry in the log to see how it is structured. This should show why it can't be converted to a multi-polygon.

Badge

Try sending the problem feature to a Logger, then examining the geometry in the log to see how it is structured. This should show why it can't be converted to a multi-polygon.

Hi Dave,

I have tried numerous Transformers, I still have a single record that is rejected.

There are 311 records

310 are multi-records

1 record in aggregate

 

The error message is:

GeometryCoercer: Cannot coerce from IFMEAggregate to fme_multi

 

Is there any Transformer to convert the single record to fme_multi??

 

Thanks

Clive

 

Userlevel 2
Badge +17

Try sending the problem feature to a Logger, then examining the geometry in the log to see how it is structured. This should show why it can't be converted to a multi-polygon.

Please log the problem feature with a Logger transformer, then attach the log file here. That will help me determine how to deal with. it.

Badge

I finally found the problem.

There was a splice that was really difficult to find!!

Reply