I'm currently using a CSV reader, Database Joiner and ESRI Geodatabase Writer. The join is working perfectly:
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
-
does your csv have any coordinates like lat/lng? or are you joining by id? I would use the FeatureReader (or at least try it) docs.safe.com/fme/html/FME_Desktop_Documentation/…Mapperz– Mapperz ♦2023年05月24日 21:06:14 +00:00Commented May 24, 2023 at 21:06
1 Answer 1
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.
-
1Thanks Mark! This definitely helped I was in fact not writing any geometry. FeatureJoiner ended up producing the desired result.Kurt Cederholm– Kurt Cederholm2023年06月06日 15:56:28 +00:00Commented Jun 6, 2023 at 15:56
Explore related questions
See similar questions with these tags.