Bug report #15314
Different projection definitions for 32 and 64 bit
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||up/downstream|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||23246|
I am using QGIS on different pc's and noticed a difference in the definition of EPSG:28992 when working with the raster tools in QGIS and when using GDAL through the OSGeo4W Shell. For EPSG:28992 the line that start with ' TOWGS[...' is missing when writing new files using a 32bit installed version of QGIS when reading the projection info (gdalinfo) with the 64bit installed versions. This sometimes causes problems reading and editing the files on 64bit versions. In my workflow the rasters are modified on windows and used by a different process that runs on Linux 64 bit
I have tested using several QGIS-versions (2.8.3/2.8.6/2.14.4) that also have different GDAL versions associated with them, but I find the line is always missing in 32bit versions.
I have read the projection definition using gdalinfo and python via the OSGeo4W Shell.
I have added some example-files.
Used commands in OSGeo4W Shell:
gdal_translate olf.tif new.tid -a_srs EPSG:28992
from osgeo import gdal
Hope you can help or send me to someone who can.
#2 Updated by Wouter van Esse over 4 years ago
- File gdal_tests.zip added
I tried to attach the files again.
I have failed to mention one thing. Only when reading with an older version of QGIS the TOWGS line is missing. The latest versions do show the TOWGS line.
I'm reading (gdalinfo) using QGIS 2.8.6 that uses GDAL 1.11.3.
#4 Updated by Andre Joost over 4 years ago
As far as I see, the +towgs84 values are alwas in the proj.4 string, and the WKT contains the EPSG code. So there should be little problem with the datum shift. Rasters from ESRI software never have the TOWGS84 values stored in the WKT file.
This might be an upgrade from GDAL, nothing that QGIS can do about. Using older versions of QGIS or GDAL is not recommended.