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. In my experience this sort of asynmmetric rounding error is quite common in geospatial software. I normally use the floor() approach to when resolving it. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, [EMAIL PROTECTED] light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent ------------------------ Yahoo! Groups Sponsor --------------------~--> $4.98 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/Q7_YsB/neXJAA/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/
