Skip to main content
Solved

Feature division/Split


gis2020
Participant
Forum|alt.badge.img

Hi All,

I have a DBF table/geodatabase table wherein for each feature there is 7 entry. there are two ID fields one is the feature ID and There is another field where some ID's are given called IN_GRP these are given by source provider. I want to create files from this which has 60 feature each with same IN_Grp and with all the 7 entries of that feature.

Best answer by redgeographics

You can use a Fanout on the IN_GRP attribute, simply use it to fill the Table Name.

View original
Did this help you find an answer to your question?

6 replies

david_r
Celebrity
  • July 17, 2017

The term for what you're looking for in FME is a fanout, have a look at the documentation where it's pretty well explained: https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/Workbench/fanout_about.htm

Specifically, you'll probably want a Dataset Fanout, which is explained in detail here: https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/Workbench/Setting_Dataset_Fanout_Properties.htm


redgeographics
Celebrity
Forum|alt.badge.img+49
  • Celebrity
  • Best Answer
  • July 17, 2017

You can use a Fanout on the IN_GRP attribute, simply use it to fill the Table Name.


gis2020
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • July 17, 2017
david_r wrote:

The term for what you're looking for in FME is a fanout, have a look at the documentation where it's pretty well explained: https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/Workbench/fanout_about.htm

Specifically, you'll probably want a Dataset Fanout, which is explained in detail here: https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/Workbench/Setting_Dataset_Fanout_Properties.htm

 

could please give more details on this how I can use fanout option for creating a file with 60 feature having same IN_GRP and all 7 entries.(in this case my total count will be 420 feature per file as each feature has 7 diff entries )i have no experience in building an expression for such cases.

gis2020
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • July 17, 2017
redgeographics wrote:

You can use a Fanout on the IN_GRP attribute, simply use it to fill the Table Name.

but then how i can limit the number of feature per file. 60 feature(entity_ID) with all 7 entries so my final feature count in new file will be 420

 

 


redgeographics
Celebrity
Forum|alt.badge.img+49
gis2020 wrote:
but then how i can limit the number of feature per file. 60 feature(entity_ID) with all 7 entries so my final feature count in new file will be 420

 

 

You can use a ModuloCounter for that. Probably will need to sort the data beforehand to make sure the groups don't get split up across multiple output files. And then set up the Dataset Fanout as @david_r pointed out.

 


gis2020
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • July 18, 2017

thank you, both it worked @ redgeographics @david_r


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings