Solved

Feature division/Split

  • 17 July 2017
  • 6 replies
  • 73 views

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.

icon

Best answer by redgeographics 17 July 2017, 15:26

View original

6 replies

Userlevel 4

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

Userlevel 5
Badge +25

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

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.

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

 

 

Userlevel 5
Badge +25
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.

 

thank you, both it worked @ redgeographics @david_r

Reply