gdal
gdal copied to clipboard
NAS - SRS is not detected
Expected behavior and actual behavior.
SRS is detected by NAS driver.
Not entirely sure if the NAS file conforms to specifications, but there is some SRS info available which is not detected:
Result:
Steps to reproduce the problem.
ogrinfo -al AX_WEGPFADSTEIG.XML
NAS-data: AX_WEGPFADSTEIG.zip
Operating system
Debian GNU/Linux 10 (buster)
GDAL version and provenance
GDAL 3.6.0dev-e10d39568c6ab37077f4b6bc2ee3fb93e1e4d41e, released 2022/06/28 (Docker)
cc @jef-n
Here's another sample file which has two features with different SRS: UTM32+PreuLa-Punkte.zip
Looks like the root cause of the issue is that one of the two SRS has <standard>true</standard>
and it's not declared additionally for the feature using this SRS (and the SRS is currently not detected by the NAS driver).
The SRS with <standard>false</standard>
is declared additionally with an srsName
-attribute for the feature using this SRS and detected by the NAS driver:
From the spec:
AA_Koordinatenreferenzsystemangaben
standard
-attribute:
Definition:
Ist der Wert TRUE, dann ist dieses Koordinatenreferenzsystem das Standardreferenzsystem in dem NAS-Dokument. Alle Koordinaten ohne expliziten Bezug zu einem Referenzsystem liegen in diesem Standardreferenzsystem.
(If the value is TRUE, then this coordinate reference system is the default reference system in the NAS document. All coordinates without explicit reference to a reference system are in this default reference system. - translated by https://www.deepl.com/)