hungio / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

RMMapContents crash for latitude window > 90 degrees #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Call -[RMMapContents zoomWithLatLngBoundsNorthEast:SouthWest:] with two
points more than 90 degrees of latitude apart, such as 80oN and 20oS

What is the expected output? What do you see instead?
It should zoom to the rect, but instead freezes in an infinite loop.

What version of the product are you using? On what operating system?
Revision 173 on iPhone OS 2.2.

Please provide any additional information below.
I am attaching a patch that fixes this crash.  The crash happens when the
code subtracts two points and converts the difference from mercator to XY.
 If the mercator contains a latitude with magnitude > 90 degrees,
[projection latLongToPoint:latLongBounds] returns nan.  My patch fixes this
by converting the two points separately and subtracting the resulting points.

Original issue reported on code.google.com by foo...@gmail.com on 8 Jan 2009 at 9:19

Attachments:

GoogleCodeExporter commented 8 years ago
Is this still open? Please test both bug and fix against the current codebase 
and then commit. Thanks!

Original comment by halmuel...@gmail.com on 1 Mar 2009 at 10:24

GoogleCodeExporter commented 8 years ago

Original comment by halmuel...@gmail.com on 4 Mar 2009 at 6:07

GoogleCodeExporter commented 8 years ago

Original comment by halmuel...@gmail.com on 8 Mar 2009 at 6:57

GoogleCodeExporter commented 8 years ago
Fixed in r305.

Original comment by halmuel...@gmail.com on 11 Mar 2009 at 11:41