Skip to main content
Archived

FME Objects: introduce setPartAt() and removePartAt() methods for all aggregates

Related products:Integrations
  • December 16, 2016
  • 0 replies
  • 31 views

geosander
Forum|alt.badge.img+7

***Note from Migration:***

Original Title was: FME Objects: introduce setPartAt() and removePartAt() methods for all aggregates/multis


I would love to see 2 new methods on all aggregates/multis (FMEAggregate, FMEMultiSurface, FMECompositeSurface etc.) classes in the FME Objects Python API, as this allows us to manipulate parts in a less tedious manner.
I'd like to be able to just replace or remove a specific part by its index, using a setPartAt() and a removePartAt() method.

Now, we can only append a part (appendPart()) or remove it from the end (removeEnd/LastPart() - I see both names in the API), but what if I simply like to replace some part by another geometry or remove one part? Then I'd have to create a new empty aggregate, read the parts from the current aggregate using getPartAt() and then copy over the ones I want to preserve in the new aggregate using appendPart(), adding/skipping the parts I want to replace/remove respectively. The biggest problem here is that I loose all transformation matrices in the process, so I also need to copy those over. Using the proposed methods, we could just leave everything intact.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.