Skip to main content
Solved

Replicate features based on a numeric attribute value (if it is > 1)

  • June 22, 2020
  • 3 replies
  • 45 views

bwasserstein
Participant
Forum|alt.badge.img

I'm looking for a method to "explode" single features into multiple features based on the numeric value in a given attribute field. Here is an example of what I'm working with and where I'm trying to get to, keeping in mind that there is point data attached to each record here...

AnimalNumber_SeenOwl1Deer2Raccoon3

 

I'm looking to "explode" the features so that there is one point feature for each individual animal...

AnimalNumber_SeenOwl1Deer1Deer1Raccoon1Raccoon1Raccoon1

 

It's worth noting that there are many features on the map for any given animal type, but the observations have been aggregated by the number of animals seen in the group at the time. An animal sighting with a "Number_Seen" = 1 does not need to be "exploded".

 

Does anyone know a good FME workflow to do such a thing? I essentially need to de-aggregate points and replicate the spatial/attribute data so that there is a feature for each individual animal observed.

Thanks for any help you can provide, fellow FME'ers!

Best answer by jdh

If your data contains aggregates of the point location, so that a single record contains multiple points, then you want the deaggregator.

 

If you have a single point for each record and want to replicate it so that there is one point per animal, then you want the Cloner.

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.

3 replies

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • Best Answer
  • June 22, 2020

If your data contains aggregates of the point location, so that a single record contains multiple points, then you want the deaggregator.

 

If you have a single point for each record and want to replicate it so that there is one point per animal, then you want the Cloner.


bwasserstein
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • 20 replies
  • June 22, 2020

If your data contains aggregates of the point location, so that a single record contains multiple points, then you want the deaggregator.

 

If you have a single point for each record and want to replicate it so that there is one point per animal, then you want the Cloner.

Thanks @jdh. My goodness, three years of FME and I couldn't re-call my need for a Cloner today...and I've used that transformer before in workflows! I appreciate the quick response - this was exactly what I was looking for.


jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • June 22, 2020

Thanks @jdh. My goodness, three years of FME and I couldn't re-call my need for a Cloner today...and I've used that transformer before in workflows! I appreciate the quick response - this was exactly what I was looking for.

19 years in and there are still transformers I'm learning about...