We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
koop/packages/featureserver/src/query/log-provider-data-warnings.js
Line 57 in c2caf07
If the field value is an empty string it will log the error field definition "myFieldName (String)" not found in first feature of provider's GeoJSON
field definition "myFieldName (String)" not found in first feature of provider's GeoJSON
code probably should check on undefined
if (featureField === undefined || hasTypeMismatch(type, featureField)) {
Also the field pull function needs to be changed to use ?? otherwise empty string fails and returns undefined if no alias is defined
function findFeatureProperty(properties, name, alias) { return properties[name] ?? properties[alias]; }
Making those 2 changes locally correctly removed the issue
Other things with that logging I noticed:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
koop/packages/featureserver/src/query/log-provider-data-warnings.js
Line 57 in c2caf07
If the field value is an empty string it will log the error
field definition "myFieldName (String)" not found in first feature of provider's GeoJSON
code probably should check on undefined
if (featureField === undefined || hasTypeMismatch(type, featureField)) {
Also the field pull function needs to be changed to use ?? otherwise empty string fails and returns undefined if no alias is defined
Making those 2 changes locally correctly removed the issue
Other things with that logging I noticed:
The text was updated successfully, but these errors were encountered: