Skip to content

feature: support parsing Norway (Banenor) kmm2 format#15

Merged
FelixAbrahamsson merged 1 commit into
masterfrom
support-norway-kmm2-format
Jul 20, 2026
Merged

feature: support parsing Norway (Banenor) kmm2 format#15
FelixAbrahamsson merged 1 commit into
masterfrom
support-norway-kmm2-format

Conversation

@FelixAbrahamsson

Copy link
Copy Markdown
Collaborator

Norway files are identified by a "NorKmmToKmm" token in the VER header and store WGS84 lat/lon in the coordinate columns instead of SWEREF99 TM northing/easting. read_kmm2 now detects this and converts lat/lon to northing/easting on read, so the rest of the pipeline (sync + geodetic) behaves identically to Swedish files.

Also adds revert_banenor_kmm2.py, which reverses the earlier SWEREF conversion applied to delivered Norway files, restoring the original lat/lon format (only genuine SWEREF files are reverted).

Norway files are identified by a "NorKmmToKmm" token in the VER header and
store WGS84 lat/lon in the coordinate columns instead of SWEREF99 TM
northing/easting. read_kmm2 now detects this and converts lat/lon to
northing/easting on read, so the rest of the pipeline (sync + geodetic)
behaves identically to Swedish files.

Also adds revert_banenor_kmm2.py, which reverses the earlier SWEREF
conversion applied to delivered Norway files, restoring the original
lat/lon format (only genuine SWEREF files are reverted).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@FelixAbrahamsson
FelixAbrahamsson force-pushed the support-norway-kmm2-format branch from 707ea56 to ac88523 Compare July 20, 2026 11:58
@FelixAbrahamsson
FelixAbrahamsson merged commit 734abee into master Jul 20, 2026
5 checks passed
@FelixAbrahamsson
FelixAbrahamsson deleted the support-norway-kmm2-format branch July 20, 2026 11:59
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