Skip to content

PB-843 : use LV03 to LV95 reframe services#1044

Merged
pakb merged 5 commits intodevelopfrom
fix-PB-843-lv03-reframe
Sep 9, 2024
Merged

PB-843 : use LV03 to LV95 reframe services#1044
pakb merged 5 commits intodevelopfrom
fix-PB-843-lv03-reframe

Conversation

@pakb
Copy link
Contributor

@pakb pakb commented Aug 28, 2024

instead of reprojecting through proj4, which led to poor precision

Test link with legacy E and N param
Same link on PROD

The difference is about a meter, no more. But for some users, that was a big deal

Test link

@github-actions github-actions bot added the bug label Aug 28, 2024
@pakb pakb requested review from ismailsunni and ltshb August 28, 2024 15:27
@cypress
Copy link

cypress bot commented Aug 28, 2024

web-mapviewer    Run #3234

Run Properties:  status check passed Passed #3234  •  git commit c2f1e7e4ea: PB-843 : change reframe helper so that it can output any projection
Project web-mapviewer
Branch Review fix-PB-843-lv03-reframe
Run status status check passed Passed #3234
Run duration 05m 31s
Commit git commit c2f1e7e4ea: PB-843 : change reframe helper so that it can output any projection
Committer Pascal Barth
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 21
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 210
View all changes introduced in this branch ↗︎

@pakb pakb force-pushed the fix-PB-843-lv03-reframe branch 2 times, most recently from 894b7bb to 9cc2bb4 Compare August 30, 2024 07:38
@pakb pakb requested a review from ltshb August 30, 2024 13:04
@pakb pakb force-pushed the fix-PB-843-lv03-reframe branch from 9cc2bb4 to 39b4a58 Compare September 2, 2024 06:40
@pakb pakb requested a review from ltshb September 2, 2024 06:44
pakb added 5 commits September 5, 2024 16:41
instead of using a "simple" matrix reprojection, which leads to a lack of accuracy the further we are from Bern (because LV03 to LV95 isn't a linear change)
rework of how coordinate are extracted from a string, so that it is now an async function (using the reframe service whenever LV03 coordinates are encountered)
The coordinate parser now returns parsed coordinates without reprojection, with the coordinate system it was detected in alongside it.
but only return unreframed LV03 coordinate, and let the search store do the reframing after detecting it is LV03 coordinates.

Should simplify the code of the extractor, removing the need for async there
should make the code much simpler to use in the context of the search bar
@pakb pakb force-pushed the fix-PB-843-lv03-reframe branch from 39b4a58 to c2f1e7e Compare September 6, 2024 08:57
@pakb pakb requested review from ltkum and ltshb September 6, 2024 09:37
Copy link
Contributor

@ltkum ltkum left a comment

Choose a reason for hiding this comment

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

Regarding the src/api/lv03Reframe.api.js file, since the function inside is now able to both reframe from Lv95 to Lv03, and the other way around, perhaps renaming the file to reflect that (maybe something like swissProjectionsReframe.api.js) could be a good idea.

Otherwise, this looks good to me, and I don't want this suggestion to stop you from merging anything.

@pakb pakb merged commit f3ef410 into develop Sep 9, 2024
@pakb pakb deleted the fix-PB-843-lv03-reframe branch September 9, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants