[Qgis-developer] TestQgsCoordinateReferenceSystem failed

Etienne Tourigny etourigny.dev at gmail.com
Mon May 28 19:01:20 PDT 2012


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