pcb

Drill file coordinates are inaccurate

Bug #960672 reported by Stephen Ecob
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcb
Won't Fix
Medium
Unassigned

Bug Description

When exporting "Gerbers" the drill files round drill coordinates to the nearest whole mil-inch. For example a via located
at X=514.6 mil-inch on the PCB results in a drill file entry that looks like this:

X0005150Y0027370

The file format used appears to have enough digits to support an accuracy of 0.1 mil-inch but all coordinates are rounded to the nearest whole mil-inch

Drilling holes with errors of up to 0.5 mil-inch generally won't matter, but PCB internally supports accuracy down to 1nm and the drill file format appears to support down to 0.1 mil-inch so we can do better.

The problem mainly affects me when I'm visually checking my Gerbers with Gerbv in high quality mode - the rounding is actually visible and distracting in the worst cases. See the attached image for an example - the drill holes *should* be centered on the pads but obviously aren't.

It is probably the case that the problem is exacerbated by scaling and pixel snapping within Gerbv+Cairo, but the source of the problem is the mismatch between the accuracies of the Gerber files and drill files exported by PCB.

I'm working with PCB head as at 2011-Dec-28 on Linux and Gerbv 2.6.0 on Cairo 1.11.5 (Beta release)

Revision history for this message
Stephen Ecob (silicon-on-inspiration) wrote :
Revision history for this message
Traumflug (mah-jump-ing) wrote :

Since the last release the option for metric Gerbers was added, which rewrote much of the coordinate formatting:

http://git.geda-project.org/pcb/commit/?id=e4f7e6158881f59033fd3b20a149677c9bc7ef96

Is this bug still happening? In case you don't feel like compiling pcb from Git yourself, please add a layout demonstrating the issue. Thanks.

Changed in pcb:
status: New → Incomplete
importance: Undecided → Medium
Traumflug (mah-jump-ing)
Changed in pcb:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.