koopjs / FeatureServer

An open source Geoservices Implementation (deprecated)
https://geoservices.github.io
Other
104 stars 32 forks source link

Make adjustments to warnings #143

Closed rgwozdz closed 5 years ago

rgwozdz commented 5 years ago

There are a set of checks that warn if feature properties do not match the set of fields specified in the metadata.fields array. These checks had been simply comparing feature property keys to metadata-field names. But in some cases the feature property keys might be field aliases. This PR adds a cross check with field alias before logging a warning.

In addition, this PR excludes fields named OBJECTID from the check. That is because OBJECTID might be a feature property generated by Winnow, in which case it wouldn't be defined in the metadata.fields array.