id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 6727,wrong pixel size when converting to RST,johanvdw,warmerdam,"When converting from a SAGA grid file or a tif, gdal_translate outputted an RST file with the wrong pixel size. Full log below. Ascii version of the example file here: https://gist.github.com/johanvdw/b862b3111b400448431c39a1b6cfe9a7 {{{ C:\Users\jvdak06\Desktop\watem-test>gdal_translate --version GDAL 2.1.2, released 2016/10/24 C:\Users\jvdak06\Desktop\watem-test>gdalinfo p5bol.sdat Driver: SAGA/SAGA GIS Binary Grid (.sdat) Files: p5bol.sdat p5bol.sdat.aux.xml p5bol.sgrd Size is 33, 42 Coordinate System is `' Origin = (-2.000000000000000,208.000000000000000) Pixel Size = (5.000000000000000,-5.000000000000000) Corner Coordinates: Upper Left ( -2.000, 208.000) Lower Left ( -2.0000000, -2.0000000) Upper Right ( 163.000, 208.000) Lower Right ( 163.0000000, -2.0000000) Center ( 80.500, 103.000) Band 1 Block=33x1 Type=Float32, ColorInterp=Undefined Min=50.000 Max=99.989 Minimum=50.000, Maximum=99.989, Mean=82.966, StdDev=10.775 NoData Value=-99999 Metadata: STATISTICS_MAXIMUM=99.989219665527 STATISTICS_MEAN=82.965540347849 STATISTICS_MINIMUM=50 STATISTICS_STDDEV=10.774532481474 C:\Users\jvdak06\Desktop\watem-test>gdal_translate p5bol.sdat -of ""RST"" p5bol.rst Input file size is 33, 42 0...10...20...30...40...50...60...70...80...90...100 - done. C:\Users\jvdak06\Desktop\watem-test>gdalinfo p5bol.rst Driver: RST/Idrisi Raster A.1 Files: p5bol.rst p5bol.rst.aux.xml p5bol.rdc Size is 33, 42 Coordinate System is: LOCAL_CS[""Plane"", UNIT[""Meter"",1]] Origin = (0.000000000000000,42.000000000000000) Pixel Size = (1.000000000000000,-1.000000000000000) Corner Coordinates: Upper Left ( 0.0000000, 42.0000000) Lower Left ( 0.0000000, 0.0000000) Upper Right ( 33.0000000, 42.0000000) Lower Right ( 33.0000000, 0.0000000) Center ( 16.5000000, 21.0000000) Band 1 Block=33x1 Type=Float32, ColorInterp=Gray Min=50.000 Max=99.989 Minimum=50.000, Maximum=99.989, Mean=82.966, StdDev=10.775 NoData Value=-99999 Unit Type: unspecified Metadata: STATISTICS_MAXIMUM=99.989219665527 STATISTICS_MEAN=82.965540347849 STATISTICS_MINIMUM=50 STATISTICS_STDDEV=10.774532481474 }}} ",defect,closed,normal,,default,unspecified,normal,fixed,,