Problem
Symbols in GEONIS are displayed rotated by 90° after an Interlis import. After exporting from GEONIS and importing into a third-party system, symbols are also displayed rotated by 90°.
Cause
In GEONIS/ArcMap, the default orientation for symbols is 0°. In the Interlis/SIA models, the default is 90°. Therefore, symbols are interpreted with a graphical deviation of 90° during import/export, even though the SymbolOri value is transferred correctly in numeric terms.
Without conversion, symbols are visually misrepresented in the target/source system.
A reliable correction is performed within the XTF files using Python, either before import or after export. The corresponding script is available for download as a .zip file in this article.
Python Solution (XTF Pre/Postprocessing)
Functionality
- Reads a specific file or all
*.xtffiles within a folder (including subfolders). - Corrects
SymbolOriaccording to the formula and normalizes values to the range [0, 360). - Supports modes for export and import (same formula, but configurable separately for clear workflows).
- Saves with a suffix (e.g.,
_new.xtf) or overwrites files—configurable as needed.
Python Script
Note: This script is intentionally designed without external packages and is compatible with common Python versions.
Parameters are centrally configured at the beginning.
Option 1: Single File (symbolori_correction_xtf.py)
- In
CONFIG:dateipfad = r"C:\Path\"dateiname = "file.xtf"transfer = "export"or"import"speichermodus = "neu"or"original"
- Execute the script → generates
file_new.xtf(or overwrites).
Option 2: Recursive Folder Processing (symbolori_correction_xtf_folder.py)
- In
CONFIG:ordnerpfad = r"C:\Path\"transfer = "export"or"import"speichermodus = "neu"or"original"
- Execute the script → all
*.xtffiles will be corrected and saved.
Additional Notes
- For compatibility with older Python versions, features that may cause syntax or write errors have been omitted.
Comments
0 comments
Article is closed for comments.