Skip to main content
Solved

How to use a SchemaScanner on an empty feature type?


joaniegeo99
Contributor
Forum|alt.badge.img+1

FME(R) 2023.1.1.0 (20230928 - Build 23631 - WIN64)

Hello FMEers,

I have a set of Esri feature classes that we are supplying to our clients so they can submit data to us using a standard schema. On submission we want to verify they haven’t modified the data structure using the method described here. The method compares two datasets using the SchemaScanner and works well if there is at least one record in each feature type. It doesn’t work if there are no records in one of the datasets to be compared. This is expected because there are simply no features coming out of the ‘template’ feature class reader to work with.

My question: is there any way to achieve the intent of the abovementioned article when one of my inputs has no records, only the table definition? The method works fine if I include a dummy record in the ‘template’ feature class, but I’d rather avoid this kludge.

Thanks in advance.

 

Best answer by nielsgerrits

I would just use the SchemaFeature from the FeatureReader to do this. This feature is also generated without any data in the FeatureClass.

View original
Did this help you find an answer to your question?

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+53
  • Best Answer
  • April 30, 2024

I would just use the SchemaFeature from the FeatureReader to do this. This feature is also generated without any data in the FeatureClass.


joaniegeo99
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • April 30, 2024

Thanks, that looks like it will do the trick.


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