Skip to main content
Question

Use same FeatureWriter for Lines and Polygons

  • November 20, 2023
  • 3 replies
  • 41 views

galigis
Enthusiast
Forum|alt.badge.img+20

Hello,

Can I use the same FeatureWriter transformer to write lines and polygons into the same GDB? I know how to do it in a normal writer but can't get it to work with the FeatureWriter. Below an example of the workbench which filter the geometry by areas and lines and then go into two different ports in the transformer

FME_1Below an example of the FeatureWriter settings where I have included two feature types (polygon and lines)

 

FME_2 

Do I need to set a Dynamic Schema Definition? I have tried that option with 'Schema From Schema Feature' option but failed,

 

Any idea more than welcome, thanks! :)

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+61

You should be able to do that but depending on your input both will go to the same feature type (Geodatabase table) and ESRI formats are not happy with that. If you change the table names to two different names it should work.


nielsgerrits
VIP
Forum|alt.badge.img+61

You should be able to do that but depending on your input both will go to the same feature type (Geodatabase table) and ESRI formats are not happy with that. If you change the table names to two different names it should work.

This, you probably have different geometrytypes in the same fme feature type and featureclasses do not support generic geometry types. You could suffix the fme feature type depending on geometry type, then this will work.


galigis
Enthusiast
Forum|alt.badge.img+20
  • Author
  • Enthusiast
  • November 21, 2023

Thanks both, sorted