gdal icon indicating copy to clipboard operation
gdal copied to clipboard

NAS - SRS is not detected

Open pathmapper opened this issue 2 years ago • 3 comments

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:

grafik

Result:

grafik

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)

pathmapper avatar Aug 09 '22 15:08 pathmapper

cc @jef-n

rouault avatar Aug 09 '22 15:08 rouault

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).

grafik

grafik

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:

grafik

pathmapper avatar Aug 10 '22 09:08 pathmapper

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/)

pathmapper avatar Aug 10 '22 10:08 pathmapper