Skip to main content

I'm working with the SchemaScanner transformer and trying to compare two similar schemas for differences.

 

However, one of my datasets is a shell and has no features in it (the top feature reader and stream in the workspace screenshot) This seems to be causing SchemaScanner to output different results than my dataset that has features.

 

I'm basing my workspace off this article here - https://community.safe.com/s/article/How-to-SchemaScanner-Transformer

 

How can I compare the schemas in this case?

 

workspace 

Here's the list exploder output from the feature class that has features

list exploder output feature class with featuresWhile here's the list exploder output from the featureclass with no features

list exploder output feature class without features

Hi @carmijo​ 

I believe you should get the same results for both feature classes if you change the input for the ListExploder to accept the feature from SchemaScanner's Output port instead of the Schema port for the feature class without features (ie. so it matches the bottom workflow).

Note that it is not necessary to use a SchemaScanner transformer in your case since you already have a schema feature from the FeatureReader and you have not modified the schema in any way before passing the schema feature to the ListExploder.


Hi @carmijo​ 

I believe you should get the same results for both feature classes if you change the input for the ListExploder to accept the feature from SchemaScanner's Output port instead of the Schema port for the feature class without features (ie. so it matches the bottom workflow).

Note that it is not necessary to use a SchemaScanner transformer in your case since you already have a schema feature from the FeatureReader and you have not modified the schema in any way before passing the schema feature to the ListExploder.

Hi @debbiatsafe​, thanks for the response. I confirmed that fixes it. Take care!


Reply