feature: support parsing Norway (Banenor) kmm2 format#15
Merged
Conversation
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
force-pushed
the
support-norway-kmm2-format
branch
from
July 20, 2026 11:58
707ea56 to
ac88523
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).