The closest I can think of in MapInfo is Save Copy As... And indeed when you do that, the points do not move, whereas reading and saving via MiTab the are moving 1 millionth of a degree for each iteration.
My patched version (I did the (dX<0 ? -0.5 : 0.5) variant) works perfectly. Again, I can't believe that we (and our customers) never found this. We have some really picky customers.... Ned. -----Original Message----- From: Daniel Morissette [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 3:12 PM To: [EMAIL PROTECTED] Subject: Re: [mitab] Round off error? Frank Warmerdam wrote: > > On Wed, 8 Dec 2004 14:44:04 -0700, Ned Harding > <[EMAIL PROTECTED]> wrote: > >> >> Hey All, >> >> I'm running in to an error that seems like a bug in >> TABMAPHeaderBlock::Coordsys2Int. > > ... > >> nX = (GInt32) floor(dTempX); >> >> Am I crazy? I was really surprised to find such a basic bug after >> using this library for years. > > > Ned, > > I think you are right, and that this rounding bug has > likely always been present. If you file a bug in the > MITAB bugzilla Daniel or I should be able to patch it. > Doh! I agree that's not looking good on me. If you could file a bug that would be great. BTW, have you verified that the "fixed" behavior matches what MapInfo does? -- ------------------------------------------------------------ Daniel Morissette [EMAIL PROTECTED] DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dkFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/mitab/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
