Skip to main content

Hi,

 

I have multiple gdb with feature classes. I would like to get one feature class per each gdb as a sample. The catch is that I do not want to read all data as it's massive. I would like to filter/sample it while reading something similar to SQL Creator

In the FeatureReader you can set the Max Features to Read parameter to 1. I think this will result in one feature per featureclass.

 

If this results in only one feature for all featureclasses you can chain two FeatureReaders together, the first one reading the schema's, feeding it to the second one in Feature Types to Read.


Hi, I have try to play with the Max Features number. Unfortunately, it reads the specified number of records from one feature only


Hi, I have try to play with the Max Features number. Unfortunately, it reads the specified number of records from one feature only

Yes this is a known thing. One way to work around this is to use 2 FeatureReaders. Use the first one to read the schema only, use these as input for the second FeatureReader.


Yes this is a known thing. One way to work around this is to use 2 FeatureReaders. Use the first one to read the schema only, use these as input for the second FeatureReader.

Attached sample workspace.

FeatureReaderSample(2021)


Yes this is a known thing. One way to work around this is to use 2 FeatureReaders. Use the first one to read the schema only, use these as input for the second FeatureReader.

This is not going to work for me as I have 10 gdb with over 300 feature classes. Adding 300 feature classes in not really the solution


Yes this is a known thing. One way to work around this is to use 2 FeatureReaders. Use the first one to read the schema only, use these as input for the second FeatureReader.

Please check the sample workspace.

  • FeatureReader to find all *.gdb in directory.
  • FeatureReader to read schema's of all *.gdb in the directory.
  • FeatureReader to read every schema of all *.gdb in the directory, limited by number of features.

Yes this is a known thing. One way to work around this is to use 2 FeatureReaders. Use the first one to read the schema only, use these as input for the second FeatureReader.

It works. Thank you very much for your help

 


Yes this is a known thing. One way to work around this is to use 2 FeatureReaders. Use the first one to read the schema only, use these as input for the second FeatureReader.

Cheers :)


Yes this is a known thing. One way to work around this is to use 2 FeatureReaders. Use the first one to read the schema only, use these as input for the second FeatureReader.

I am just wondering if there is a way to get the size of each feature class in gdb

 


Yes this is a known thing. One way to work around this is to use 2 FeatureReaders. Use the first one to read the schema only, use these as input for the second FeatureReader.

Using a PythonCaller, arcpy and getcount you can, but nothing I know of FME only.


Yes this is a known thing. One way to work around this is to use 2 FeatureReaders. Use the first one to read the schema only, use these as input for the second FeatureReader.

This was harder than I expected, but I suck in Python so no surprises...

Make sure you have ArcGIS Pro installed and licensed. In the navigator under Scripting set Python Compatibility to Esri ArcGIS Python 3.6+.

Attached working sample.

 


Reply