Skip to content

Refactor code to use existing QgsCoordinateTransformContext#4228

Merged
Withalion merged 2 commits intodev/geoid-supportfrom
bugfix/qgscoordinatetransformcontext
Nov 20, 2025
Merged

Refactor code to use existing QgsCoordinateTransformContext#4228
Withalion merged 2 commits intodev/geoid-supportfrom
bugfix/qgscoordinatetransformcontext

Conversation

@Withalion
Copy link
Contributor

fixes #4221

Instead of supplying empty transform context to transformation we supply current QgsCoordinateTransformContext from QgsMapSettings or QgsProject

@Withalion Withalion merged commit 9ab6816 into dev/geoid-support Nov 20, 2025
7 of 9 checks passed
@Withalion Withalion deleted the bugfix/qgscoordinatetransformcontext branch November 20, 2025 14:06
@Withalion Withalion linked an issue Nov 24, 2025 that may be closed by this pull request
Withalion added a commit that referenced this pull request Feb 9, 2026
* Geoid separation support for external providers (#4176)

* Recalculate ellipsoid elevation to orthometric (#4210)

* Enhance position altitude processing

Add EGM96_15 geoid model, which recalculates ellipsoid altitudes
returned by position providers. Expose this information in GPS
information panel.

* Fix broken builds

* Fix formatting

* Add geoid info for iOS

* Refactor PositionKit to singleton from context property

* Patch ios internal positioning provider

Provider returns now WGS84 ellipsoidal height on iOS

* Fix elevation transform & android workaround

Create new 3D transform utils function. Fix coordinate order passing.
Rework android 15+ Qt positioning workaround to VCPKG patch.

* Clean up & format code

* Add patch TODO

* Fix some review issues

* Refactor code to use existing QgsCoordinateTransformContext (#4228)

* Geoid separation support for internal providers (#4216)

* Squashed commit of the following:

commit 27b19a4
Author: Matej Bagar <matej.bagar@lutraconsulting.co.uk>
Date:   Mon Nov 24 15:22:46 2025 +0200

    Add mock location detection for android position provider

* Change default value for elevation_diff

* Custom geoid support (#4238)

* Fixed plural translation forms (#4183)

* Fixed android build to sync projects (#4243)

* Refactor support for orthometric heights on iOS

* Subtract antenna height from altitude

* Fix formatting & vcpkg bug

* Fix ios patch

* Fix ios patch v2

* Fix iOS error & constness

* Fix iOS error v3

* Add ellipsoidal elevation expr variable

* Change elevation calculation

* Increase click area for elevation info button

* Use default transform for internal providers

* Use default geoid model for android fused provider

* Add vertical CRS transform pass through for mock providers

* Add vertical CRS transfrom pass through for bluetooth provider

* Change android fused provider to default on android

* Fix GPS panel geoid model name info

* Change behaviour for internal provider on desktops

* Use EGM96 geoid model for simulated provider

* Fix iOS build

* Small refactor

* Set internal providers to use mixture of vertical CRS

* Fix review issues

* Refactor providers to use PositionTransformer

* Add PositionTransform reload on project load

* Add unit tests for PositionTransformer

* Rename project setting name

* Remove commented code, minor typo fixes, simulated provider cleanup

* Fix tests & formatting

* Fix tests

* Add test debug logs for CI

* Fix wrong test initialization for bluetoothless devices

* Revert "Fix wrong test initialization for bluetoothless devices"

This reverts commit 1541538.

* Refactor PositionTransformer creation & clear QgsProject refs in PositionKit

* Remove InputCoordinateTransformer

* Fix review issues

* Fix function typo

---------

Co-authored-by: Tomas Mizera <tomas.mizera@lutraconsulting.co.uk>
Co-authored-by: Kaustuv Pokharel <85729205+kaustuvpokharel@users.noreply.github.com>
Co-authored-by: Gabriel Bolbotina <80618569+gabriel-bolbotina@users.noreply.github.com>
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.

Empty QgsCoordinateTransformContext in function calls

2 participants