-
Notifications
You must be signed in to change notification settings - Fork 23
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
Geo 5769 tolerance per geom type #1603
Conversation
a different value can be defined per geometry type
and add retro compatibility either tolerance + scalar or tolerances + dict may be used
Codecov Report
@@ Coverage Diff @@
## master #1603 +/- ##
==========================================
- Coverage 76.52% 76.47% -0.06%
==========================================
Files 127 127
Lines 5185 5202 +17
==========================================
+ Hits 3968 3978 +10
- Misses 1217 1224 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mki-c2c , the code looks good to me;
could we add an example configuration to https://github.com/openoereb/pyramid_oereb/blob/master/dev/config/pyramid_oereb.yml.mako ?
@jwkaltz : you mean a commented stub in the config ? Because I am a bit afraid to put a default tolerance which changes quite significantly the search behaviour. So we might put some comments with a default configuration which can be uncommented by someone who wants to use this config ? |
Yes you're right, the "standard configuration" shouldn't have that enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks this looks good, but please undo the change of print base_url (not relevant here)
dev/config/pyramid_oereb.yml.mako
Outdated
@@ -48,7 +48,7 @@ pyramid_oereb: | |||
# Define whether all geometry data must be included when sending the data to the print service | |||
with_geometry: True | |||
# Base URL with application of the print server | |||
base_url: https://oereb-dev.gis-daten.ch/oereb/report/create | |||
base_url: https://oereb-pdf.gis-daten.ch/oereb/report/create |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok code wise. About the tolerance check itself I fell still not convinced. But you get an approve.
New possibilities for configuration:
either leagsxy conf: tolerance + scalar
or new conf per geometry:
{"Point": 0.1, "Polygon": 0.05}
or dict for all:
{"ALL": 0.2}