• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OSGeo / PROJ / 4063
86%
master: 87%

Build:
Build:
LAST BUILD BRANCH: rouault-patch-3
DEFAULT BRANCH: master
Ran 28 Nov 2020 01:01PM UTC
Jobs 1
Files 238
Run time 23s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4063

push

travis-ci-com

Even Rouault
Use same arguments to printf format string for both radians and degrees in output by cct (#2453)

Currently the output of the cct utility is different between radians
and degrees (as expected by cct), because of a bug in cct:

$ printf "1 2\n" | cct -z 0 -t 0 +proj=pipeline +step +proj=unitconvert +xy_in=deg +xy_out=rad
  1.0000000000    2.0000000000        0.0000        0.0000

$ printf "1 2\n" | cct -z 0 -t 0 +proj=pipeline +step +proj=unitconvert +xy_in=deg +xy_out=deg
       1.0000         2.0000        0.0000        0.0000

The arguments to the printf format string are as follows:

 * radians: width 14, precision 10
 * degrees: width 13, precision  4 (this is by mistake. bug!)

After the suggested fix has been applied, output will be the same for
both radians and degrees:

$ printf "1 2\n" | cct -z 0 -t 0 +proj=pipeline +step +proj=unitconvert +xy_in=deg +xy_out=rad
  1.0000000000    2.0000000000        0.0000        0.0000

$ printf "1 2\n" | cct -z 0 -t 0 +proj=pipeline +step +proj=unitconvert +xy_in=deg +xy_out=deg
  1.0000000000    2.0000000000        0.0000        0.0000

The cause of the bug is that cct does test if it "has radians to output",
but "neglects" to test if it "has degrees to output", resulting in using
different arguments to the printf format string in the latter case.

The fix makes cct test if it "has either radians or degrees to output".

41138 of 47557 relevant lines covered (86.5%)

41243.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4063.1 (BUILD_NAME=linux_gcc DETAILS="linux, gcc-4.8" CC=gcc-4.8 CXX=g++-4.8) 28 Nov 2020 01:01PM UTC 0
86.5
Travis Job 4063.1
Source Files on build 4063
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #4063
  • 54616dbd on github
  • Prev Build on 7.2 (#4056)
  • Next Build on 7.2 (#4068)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc