Skip to main content
Question

Writing null geometry features to ESRI file geodatabase


cavarly
Contributor
Forum|alt.badge.img+1

Is it possible to create features with a null polygon geometry and write to an ESRI file geodatabase?

I have some features with known geometry which I write successfully.

I would also like to write features with no geometry to the same table and update their geometry by manual editing later.

I have tried modifying fme_geometry{0} and fme_geometry but nothing seems to work.

I usually get an error like  “can’t write features to and area feature type”

 

I have read through similar questions but don’t seem to have a complete response. It appears it is possible to create a valid null geometry.

 

Thanks go any help.

5 replies

joepk
Influencer
Forum|alt.badge.img+20
  • Influencer
  • May 6, 2024

Yes this should be possible. I have just created a null feature and written it to a polygon feature class in an FGDB using a FeatureWriter with the Geometry set to geodb_polygon.

Can you share some more information on your workspace? How do you create your null features? Are you sure they have null geometries? What is your exact error message?

Cheers!


frro
Contributor
Forum|alt.badge.img+13
  • Contributor
  • May 6, 2024

Try using the GeometryRemover to remove all Geometry traits properly. Maybe you want to filter out your polygon features first with a GeometryFilter. Works for the Geodatabase_File and the FILEGDB writer formats.

 


cavarly
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • May 10, 2024

Hi joepk,

I have tried all ways I can think of to create a null geometry and write it.

Could you post your exact method?

 My features are read from excel ( no geometry) , some are joined to polygon geometry, the others I want to join to a null polygon geometry.


cavarly
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • May 10, 2024

Hi frro, I haven’t tried area calculator on the null geometries, perhaps that has a side effect, I’ll give it a go.


joepk
Influencer
Forum|alt.badge.img+20
  • Influencer
  • May 13, 2024
cavarly wrote:

Could you post your exact method?

I used different, very simple methods, such as:

Creator (Geometry Object: Null) → FeatureWriter 

  • Creates a Null geometry object and writes it to a FGDB polygon FeatureClass.

Creator (Geometry Object: Polygon) → GeometryRemover → FeatureWriter

  • Creates a polygon geometry object, removes the geometry (a Null geometry object is left) and writes it to a FGDB polygon FeatureClass

FeatureReader (Excel) → FeatureWriter

  • Reads an Excel file (which has no geometry) and writes it to a FGDB polygon FeatureClass.

In the FeatureWriters I use format = Esri Geodatabase (File Geodb) and I set Geometry to geodb_polygon. You have to set it to geodb_polygon to write to a polygon feature class, even if you want to write a Null geometry object.

As far as I am concerned, writing Null objects to Geodatabases is fairly straightforward. This is why I asked you to provide your exact error logs and workspace. Please also provide a screenshot of your writer settings.

 

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings