[Qgis-developer] TestQgsCoordinateReferenceSystem failed

Etienne Tourigny etourigny.dev at gmail.com
Mon May 28 20:31:59 PDT 2012


I assume you are using a 32-bit version  of Ubuntu 11.04? I don't see
this using 64bit ubuntu, gdal 1.8.1

It seems that gdal in 64-bits linux reports differently than i386 by 1 digit.

I guess a better test would be to test for towgs84 parameters (either
in proj.4 string, or qgscoordinatesystem)


Compare the results of today's autotest (lucid i386 vs. amd64) using gdal 1.6.3

lucid i386: http://dash.orfeo-toolbox.org/testDetails.php?test=10064978&build=85452

XFAIL  : TestQgsCoordinateReferenceSystem::createFromESRIWkt()
expected failure with GDAL 1630 : test 0 PROJ.4 = [ +proj=utm +zone=48
+a=6377276.345 +b=6356075.413140239 +units=m +no_defs ] expecting [
+proj=utm +zone=48 +a=6377276.345 +b=6356075.41314024
+towgs84=198,881,317,0,0,0,0 +units=m +no_defs ]

lucid amd64: http://dash.orfeo-toolbox.org/testDetails.php?test=10066758&build=85457

XFAIL  : TestQgsCoordinateReferenceSystem::createFromESRIWkt()
expected failure with GDAL 1630 : test 0 PROJ.4 = [ +proj=utm +zone=48
+a=6377276.345 +b=6356075.41314024 +units=m +no_defs ] expecting [
+proj=utm +zone=48 +a=6377276.345 +b=6356075.41314024
+towgs84=198,881,317,0,0,0,0 +units=m +no_defs ]

Plus ubuntugis i386 failed because of the same precision issue,
whereas lucid-ubuntugis-amd64 passed

http://dash.orfeo-toolbox.org/testDetails.php?test=10066805&build=85462

FAIL!  : TestQgsCoordinateReferenceSystem::createFromESRIWkt() 'false'
returned FALSE. (test 0 PROJ.4 = [ +proj=utm +zone=48 +a=6377276.345
+b=6356075.413140239 +towgs84=198,881,317,0,0,0,0 +units=m +no_defs ]
expecting [ +proj=utm +zone=48 +a=6377276.345 +b=6356075.41314024
+towgs84=198,881,317,0,0,0,0 +units=m +no_defs ])


Etienne

On Mon, May 28, 2012 at 11:01 PM, Etienne Tourigny
<etourigny.dev at gmail.com> wrote:
> can you post the entire (non-debug) output of the test, which includes
> gdal+proj version ?
>
> I tested with gdal (1.8.1) and I didn't run into that problem.  It's
> possible that gdal-1.8.0 gives different results.  The important part
> is the +towgs84 parameters, so the test should be relaxed instead of
> testing for exact proj4 string match.
>
> Etienne
>
> On Mon, May 28, 2012 at 10:46 PM, Giuseppe Sucameli
> <brush.tyler at gmail.com> wrote:
>> Hi all,
>>
>> one of the CRS tests fails running it from latest master (9859709e9)
>> running against GDAL 1.8.0 on Ubuntu 11.04:
>>
>> FAIL!  : TestQgsCoordinateReferenceSystem::createFromESRIWkt() 'false'
>> returned FALSE. (test 0 PROJ.4 = [ +proj=utm +zone=48 +a=6377276.345
>> +b=6356075.413140239 +towgs84=198,881,317,0,0,0,0 +units=m +no_defs ]
>> expecting [ +proj=utm +zone=48 +a=6377276.345 +b=6356075.41314024
>> +towgs84=198,881,317,0,0,0,0 +units=m +no_defs ])
>>   Loc: [/home/brushtyler/projects/sources/qgis/tests/src/core/testqgscoordinatereferencesystem.cpp(221)]
>>
>> The difference is due to the rounded +b value in the hardcoded version
>> (...24 vs. ...239).
>>
>> Does the fail depends on the GDAL version or is the hardcoded
>> proj4string wrong?
>>
>> Regards.
>>
>> --
>> Giuseppe Sucameli
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list