Dear all!<div><br></div><div>This may be related to my recent posting about SetField behaving differently in different gdal versions.<br><div class="gmail_quote">In any case I find that the bounding box of this <a href="http://www.keepandshare.com/doc/3116689/population-2010-clip-tif-september-3-2011-5-20-pm-162k?da=y">test geotif file</a> is different on the two installations (details below).</div>
<div class="gmail_quote">
<br>In brief, the bounding box using gdal 1.6 is<br><br>Upper Left  (  99.3641696,  -0.0041806) ( 99d21&#39;51.01&quot;E,  0d 0&#39;15.05&quot;S)<br>Lower Left  (  99.3641696,  -2.2031806) ( 99d21&#39;51.01&quot;E,  2d12&#39;11.45&quot;S)<br>

Upper Right ( 102.2411696,  -0.0041806) (102d14&#39;28.21&quot;E,  0d 0&#39;15.05&quot;S)<br>
Lower Right ( 102.2411696,  -2.2031806) (102d14&#39;28.21&quot;E,  2d12&#39;11.45&quot;S)<br>Center      ( 100.8026696,  -1.1036806) (100d48&#39;9.61&quot;E,  1d 6&#39;13.25&quot;S)<br><br><br>whereas using gdal 1.8 it is<br>

<br>Upper Left  (  99.3600000,   0.0000000) ( 99d21&#39;36.00&quot;E,  0d 0&#39; 0.01&quot;N)<br>
Lower Left  (  99.3600000,  -2.1990000) ( 99d21&#39;36.00&quot;E,  2d11&#39;56.40&quot;S)<br>
Upper Right ( 102.2370000,   0.0000000) (102d14&#39;13.20&quot;E,  0d 0&#39; 0.01&quot;N)<br>
Lower Right ( 102.2370000,  -2.1990000) (102d14&#39;13.20&quot;E,  2d11&#39;56.40&quot;S)<br>
Center      ( 100.7985000,  -1.0995000) (100d47&#39;54.60&quot;E,  1d 5&#39;58.20&quot;S)<br><br>It&#39;d be great if someone can <br><ol><li>Reproduce this using the test file (download using link above)</li><li>Let us know which bounding box is correct</li>

<li>Raise this as a ticket if it is a genuine bug</li></ol><br>Cheers and thanks<br>Ole Nielsen<br><br><br><br><br>--------------------------------------------<br>DETAILED OUTPUTS<br>--------------------------------------------<br>

<br>---------------------------------------------<br>On Maverick 10.10, GDAL 1.6<br>---------------------------------------------<br>nielso@shiva:~/dev/risiko_test_data$ dpkg -l | grep gdal<br>ii  gdal-bin                             1.6.3-4build1                                   Geospatial Data Abstraction Library - Utility programs<br>


ii  libgdal1-1.6.0                       1.6.3-4build1                                   Geospatial Data Abstraction Library<br>ii  libgdal1-1.6.0-grass                 1.6.3-3                                         GRASS extension for the GDAL library<br>


ii  libgdal1-dev                         1.6.3-4build1                                   Geospatial Data Abstraction Library - Development files<br>ii  python-gdal                          1.6.3-4build1                                   Python bindings to the Geospatial Data Abstraction Library<br>


<br>nielso@shiva:~/dev/risiko_test_data$ gdalinfo --version<br>GDAL 1.6.3, released 2009/11/19<br><br>nielso@shiva:~/dev/risiko_test_data$ gdalinfo Earthquake_Ground_Shaking_clip.tif <br>Driver: GTiff/GeoTIFF<br>Files: Earthquake_Ground_Shaking_clip.tif<br>

Size is 345, 263<br>Coordinate System is:<br>GEOGCS[&quot;WGS 84&quot;,<br>
    DATUM[&quot;WGS_1984&quot;,<br>        SPHEROID[&quot;WGS 84&quot;,6378137,298.2572235630016,<br>            AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>        AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>


    PRIMEM[&quot;Greenwich&quot;,0],<br>    UNIT[&quot;degree&quot;,0.0174532925199433],<br>    AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]<br>Origin = (99.364169565217395,-0.004180608365019)<br>Pixel Size = (0.008339130434783,-0.008361216730038)<br>


Metadata:<br>  AREA_OR_POINT=Point<br>  TIFFTAG_XRESOLUTION=1<br>  TIFFTAG_YRESOLUTION=1<br>  TIFFTAG_RESOLUTIONUNIT=1 (unitless)<br>Image Structure Metadata:<br>  COMPRESSION=LZW<br>  INTERLEAVE=BAND<br>Corner Coordinates:<br>


Upper Left  (  99.3641696,  -0.0041806) ( 99d21&#39;51.01&quot;E,  0d 0&#39;15.05&quot;S)<br>Lower Left  (  99.3641696,  -2.2031806) ( 99d21&#39;51.01&quot;E,  2d12&#39;11.45&quot;S)<br>Upper Right ( 102.2411696,  -0.0041806) (102d14&#39;28.21&quot;E,  0d 0&#39;15.05&quot;S)<br>


Lower Right ( 102.2411696,  -2.2031806) (102d14&#39;28.21&quot;E,  2d12&#39;11.45&quot;S)<br>Center      ( 100.8026696,  -1.1036806) (100d48&#39;9.61&quot;E,  1d 6&#39;13.25&quot;S)<br>Band 1 Block=256x256 Type=Float64, ColorInterp=Gray<br>


<br><br>-----------------------------------------<br>On Natty 11.04, GDAL 1.8.0<br>-----------------------------------------<br>nielso@shakti:~/dev/risiko_test_data$ dpkg -l | grep gdal<br>ii  gdal-bin                              1.8.0-2~natty2                             Geospatial Data Abstraction Library - Utility programs<br>

pi  libgdal1-1.6.0                        1.6.3-4build4                              Geospatial Data Abstraction Library<br>pi  libgdal1-1.8.0                        1.8.0-2~natty2                             Geospatial Data Abstraction Library<br>

ii  python-gdal                           1.8.0-2~natty2                             Python bindings to the Geospatial Data Abstraction Library<br><br>nielso@shakti:~/dev/risiko_test_data$ gdalinfo --version<br>GDAL 1.8.0, released 2011/01/12<br>

<br>nielso@shakti:~/dev/risiko_test_data$ gdalinfo Earthquake_Ground_Shaking_clip.tif <br>Driver: GTiff/GeoTIFF<br>Files: Earthquake_Ground_Shaking_clip.tif<br>Size is 345, 263<br>Coordinate System is:<br>GEOGCS[&quot;WGS 84&quot;,<br>

    DATUM[&quot;WGS_1984&quot;,<br>        SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,<br>            AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>        AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>    PRIMEM[&quot;Greenwich&quot;,0],<br>

    UNIT[&quot;degree&quot;,0.0174532925199433],<br>    AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]<br>Origin = (99.359999999999999,0.000000000000000)<br>Pixel Size = (0.008339130434783,-0.008361216730038)<br>Metadata:<br>

  TIFFTAG_XRESOLUTION=1<br>  TIFFTAG_YRESOLUTION=1<br>  TIFFTAG_RESOLUTIONUNIT=1 (unitless)<br>  AREA_OR_POINT=Point<br>Image Structure Metadata:<br>  COMPRESSION=LZW<br>  INTERLEAVE=BAND<br>Corner Coordinates:<br>Upper Left  (  99.3600000,   0.0000000) ( 99d21&#39;36.00&quot;E,  0d 0&#39; 0.01&quot;N)<br>

Lower Left  (  99.3600000,  -2.1990000) ( 99d21&#39;36.00&quot;E,  2d11&#39;56.40&quot;S)<br>Upper Right ( 102.2370000,   0.0000000) (102d14&#39;13.20&quot;E,  0d 0&#39; 0.01&quot;N)<br>Lower Right ( 102.2370000,  -2.1990000) (102d14&#39;13.20&quot;E,  2d11&#39;56.40&quot;S)<br>

Center      ( 100.7985000,  -1.0995000) (100d47&#39;54.60&quot;E,  1d 5&#39;58.20&quot;S)<br>Band 1 Block=256x256 Type=Float64, ColorInterp=Gray<br><br><br><br><br><br><br><br><br><br><br><br><br>
</div><br></div>