Skip to main content
Question

Is it necessary to specify geometry type when updating only attributes on multiple feature classes?

  • February 12, 2021
  • 1 reply
  • 35 views

rchoucroun
Contributor
Forum|alt.badge.img+20

I have a workspace where I am reading spatial data from an Enterprise geodatabase, modifying only a single attribute and updating that attribute using a feature writer. I'm reading the data dynamically and want to write it dynamically too. The data consists of points, lines, and polygons.

 

My question is, when updating only a single field, and not spatial data, does the writer ignore the geometry type? Or do I have to split my data up into point, line and polygon before it hits the writer and specify the correct geometry for each type?

 

2021-02-12_15h22_35

1 reply

hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1625 replies
  • February 14, 2021

This is a case for dynamic workflows, albeit an easy one.

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/!FeatureTypeProperties/workspaces_dynamic_about.htm

The gist of what you need to do is enable dynamic schema definition, set the schema source to the reader, and set the geometry to 'Defined by Schema'