CNES / MAJA

Level-2A processor used for atmospheric correction and cloud-detection. The active repository is the one below, this one is kept to leave access to the older issues.
https://gitlab.orfeo-toolbox.org/maja/maja
Apache License 2.0
140 stars 25 forks source link

Bad behaviour with GDAL 3 in DTMCreation #46

Open EkicierNico opened 4 years ago

EkicierNico commented 4 years ago

Hi, Just to tell you that there is a bad behaviour with GDAL 3 (at least <= 3.0.2). In DTMCreation/tuilage_mnt_eau_S2.py, the coordinates tranformation from osr (line 104/105) returns opposite values : (y, x) instead of (x,y).

The consequence is a wrong intersection between S2 image and SRTM coordinates (wrong path of srtm file, line 118/119).

Issue from OSGEO already identified : https://github.com/OSGeo/gdal/issues/1546

For now, MAJA works fine with GDAL 2, my advice is do not update to GDAL 3 until issue is fixed.

Nicolas Ekicier

petket-5 commented 4 years ago

The new version of Start_maja takes this into account already.

See: https://github.com/petket-5/Start_maja_int/commit/8ccf43a7447092c767553c12a4464422df61705c