Skip to content

Fix & cleanup georeferencing features#77

Draft
jorauh wants to merge 12 commits intomasterfrom
fix-&-cleanup-georeferencing-features
Draft

Fix & cleanup georeferencing features#77
jorauh wants to merge 12 commits intomasterfrom
fix-&-cleanup-georeferencing-features

Conversation

@jorauh
Copy link
Copy Markdown
Contributor

@jorauh jorauh commented Mar 2, 2026

I will collect some cleanup of the old (lon/lat/alt based) and new (mpro map projection based) features to achieve

  • version upward and downward compatibility
  • provide better warnings in case of conflicts
  • ...
    For testing it will be important to get some demo data sets
  • with old lon/lat/alt based headers
  • with new mpro map projection headers for simple UTM projections and also previously used GK-like projections

CarawaySeed42 and others added 9 commits November 21, 2025 09:45
The crg rerender function did not handle the increment arguments correctly
which let to issues which are hard to understand for the caller.

Signed-off-by: Patrick Kuemmerle <patrick.kuemmerle@3d-mapping.de>
Fix bugs where OpenCRG Matlab API would not handle arguments correctly,
remove necessary components of the CRG header, introudce unwanted coordinate shifts,
or rely on optional header entries.

Resolves: #9

Signed-off-by: Patrick Kuemmerle <patrick.kuemmerle@3d-mapping.de>
Undoing workarounds that would prevent errors
due to the underlying crg check issues.

Signed-off-by: Patrick Kuemmerle <patrick.kuemmerle@3d-mapping.de>
Remove fault tolerance, check arguments and throw error
on invalid arguments.

Signed-off-by: Patrick Kuemmerle <patrick.kuemmerle@3d-mapping.de>
Without copying poff the crg check would
fail if mpro is present.

Signed-off-by: Patrick Kuemmerle <patrick.kuemmerle@3d-mapping.de>
The extract slope and banking functions introduced or
removed offsets from the data.

Signed-off-by: Patrick Kuemmerle <patrick.kuemmerle@3d-mapping.de>
fixed error: added missing dim argument to size function

removed  dead code to write unknown header element data.head.rccl

corrected some comments
@jorauh jorauh requested review from a team and CarawaySeed42 March 2, 2026 18:03
@jorauh jorauh self-assigned this Mar 2, 2026
@jorauh jorauh added isType:Bug An issue that contains contradictions or errors in the standard. isState:New A new issue that needs to be classified to a type. labels Mar 2, 2026
@jorauh jorauh removed the request for review from a team March 2, 2026 18:04
removed obsolete call to crg_check_wgs84, which is now called in crg_check
@jorauh
Copy link
Copy Markdown
Contributor Author

jorauh commented Mar 2, 2026

#47 (comment): removed obsolete check by 12e4f74

crg_mods.m: remove georeferencing data which becomes invalid due to application of modifiers scaling/shifting/rotating the reference line.
crg_check_data: don't guess aend - the georeferencing data should only be set if really known.
Comment thread matlab/lib/crg_check_data.m Outdated
%% check NaNs in DATA.z

data.ir = zeros(1, nu);
cdata.ir = zeros(1, nu);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this a typo? cdata.ir is never used but data.ir is

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, just corrected.

fixed typos, improved var names
@jorauh jorauh added isState:InProgress An issue that is assigned a responsible, has a due date and clear requirements and removed isState:New A new issue that needs to be classified to a type. labels Apr 13, 2026
@ClemensLinnhoff ClemensLinnhoff added this to the v.2.1.0 milestone Apr 13, 2026
@jorauh jorauh added this to the v.2.1.0 milestone Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isState:InProgress An issue that is assigned a responsible, has a due date and clear requirements isType:Bug An issue that contains contradictions or errors in the standard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Matlab-API: Inconsistencies by adding or removing map projection field Matlab-API: crg_cut from a circuit

3 participants