Skip to main content
Question

Read particular geometry type form gdb

  • November 21, 2023
  • 5 replies
  • 58 views

marta.podsiad
Supporter
Forum|alt.badge.img+9

Hi,

 

Is there a way that I can read only point layer type from gdb without reading the full content first and then making selection?

 

Read particular geometry type form gdb

5 replies

nielsgerrits
VIP
Forum|alt.badge.img+61

One way to do this:

  • Creator
  • FeatureReader, read GDB, schema only.
  • Filter featureclasses with point geometrytype.
  • FeatureReader, initiated by previously filtered features, read these featureclasses.

marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • November 22, 2023

One way to do this:

  • Creator
  • FeatureReader, read GDB, schema only.
  • Filter featureclasses with point geometrytype.
  • FeatureReader, initiated by previously filtered features, read these featureclasses.

Hi,

Unfortunately, I cannot make it work. If, in FeatureReader is read only Schema, the information about geometry is lost. That approach also does not work with geodb_relationship as it does not have schema.

 

My goal is to read only geodb_relationship from gdb without reading all the data


nielsgerrits
VIP
Forum|alt.badge.img+61

Hi,

Unfortunately, I cannot make it work. If, in FeatureReader is read only Schema, the information about geometry is lost. That approach also does not work with geodb_relationship as it does not have schema.

 

My goal is to read only geodb_relationship from gdb without reading all the data

That is an entirely different question :) I don't think you can read a relationship class using FME.

 

But if I read the schema of a featureclass from a file geodatabase, I see the attribute

fme_geometry{0} (string: UTF-8): fme_point

in the Feature Information window. So I do not think this info can't be read.


marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • November 22, 2023

Hi,

Unfortunately, I cannot make it work. If, in FeatureReader is read only Schema, the information about geometry is lost. That approach also does not work with geodb_relationship as it does not have schema.

 

My goal is to read only geodb_relationship from gdb without reading all the data

I was thinking about using Python Script in Features to Read section of the Reader to read only the geodb_relationship from gdb but I have very basic knowledge about this scripting language


nielsgerrits
VIP
Forum|alt.badge.img+61

Hi,

Unfortunately, I cannot make it work. If, in FeatureReader is read only Schema, the information about geometry is lost. That approach also does not work with geodb_relationship as it does not have schema.

 

My goal is to read only geodb_relationship from gdb without reading all the data

If I select a relationship class from a gdb in a featurereader manually, it does not output any features, so I suspect this is not supported.