Skip to content

trafo::Transfomer: add options, CRS info and thread safety - #226

Merged
flipflip8952 merged 1 commit into
mainfrom
feature/transformer-opts
Oct 29, 2026
Merged

flipflip8952 merged 1 commit into
mainfrom
feature/transformer-opts

Conversation

@flipflip8952

@flipflip8952 flipflip8952 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor
  • Add an option argument to Transformer::Init() to allow setting various options (precise trafos only, min accuracy, ...)
  • Add Transformer::{Source,Target}Crs() methods and CrsInfo types for apps to implement checks on those (e.g. to assert a geocentric CRS)
  • Add mutex to make Transformer thread-safe
  • Add more error handling

- Init() takes TransformerOpts: precise (ALLOW_BALLPARK=NO, ONLY_BEST=YES,
  instantiable check), min_accuracy (ACCURACY=x), normalize_axes
  (proj_normalize_for_visualization()), allow_network (default off) and
  area of interest
- SourceCrs() and TargetCrs() return the CRS type, name and compound parts
- All methods are thread-safe, Transform() is const
- Transform() fails on PROJ errors and non-finite results
@flipflip8952 flipflip8952 changed the title Add options, CRS info and thread safety to Transformer trafo::Transfomer: add options, CRS info and thread safety Oct 29, 2026
@flipflip8952
flipflip8952 merged commit 3a66446 into main Oct 29, 2026
13 of 14 checks passed
@flipflip8952
flipflip8952 deleted the feature/transformer-opts branch October 29, 2026 10:12
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.

1 participant