Skip to content
New issue

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

Pass the tolerance from config through to layer datum. #359

Merged
merged 2 commits into from
Dec 6, 2018

Conversation

zerebubuth
Copy link
Member

The simplify_and_clip post-processing transform looks in the layer datum to get the tolerance factor to use for simplifying geometries. Turns out, this wasn't getting passed through from the queries.yaml config, so it was just using the default of 1.0 for every layer. Ooops.

The `simplify_and_clip` post-processing transform looks in the layer datum to get the tolerance factor to use for simplifying geometries. Turns out, this wasn't getting passed through from the `queries.yaml` config, so it was just using the default of `1.0` for every layer.
Copy link
Member

@iandees iandees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the get() call return a float out of the yaml?

@zerebubuth
Copy link
Member Author

It does, if the YAML contains a float. Otherwise it'll return whatever's in the YAML, which might cause a weird error to bubble up from the simplification step. I've added an explicit conversion to float in 48e18d5, just to make sure - at least the error will come from a more comprehensible layer of the stack.

@zerebubuth zerebubuth merged commit 60cfadd into master Dec 6, 2018
@zerebubuth zerebubuth deleted the zerebubuth/pass-tolerance-in-layer-datum branch December 6, 2018 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants