0

I'm currently using a CSV reader, Database Joiner and ESRI Geodatabase Writer. The join is working perfectly:

enter image description here

But when I connect the joined output to the geodatabase writer no records are written to the feature class in the file gdb and I get an error saying "Cannot write a non-area feature to an area feature class":enter image description here

I have tried both Drop and Create and Truncate Existing for Table Handling.
enter image description here

1

1 Answer 1

2

The error states that you are creating a feature class for polygons, but are writing no geometry.

So that gives us a few options to consider:

  • If you truly don't want geometry in the feature class, then in the feature type dialog (the screenshot you posted) change the geometry type setting (it would be something like geodb_none).

But if you do want geometry, where is that geometry coming from?

  • If the geometry is meant to come from the CSV file, then you need to somehow convert it from text to points to areas. The transformers that would help are the VertexCreator and the LineBuilder.
  • If the geometry is meant to come from the database, then you'll have to use a different transformer to the DatabaseJoiner. That transformer only returns attributes, not geometry. As mentioned in a comment, the FeatureReader is your friend there. It will read a record from the database for each incoming FME feature, and that can include the geometry of that record.

I hope this helps. If not, please do let us know.

1
  • 1
    Thanks Mark! This definitely helped I was in fact not writing any geometry. FeatureJoiner ended up producing the desired result. Commented Jun 6, 2023 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.