[OpenLayers-Trac] Re: [OpenLayers] #2967: infinite recursion getting bounds of polygon with empty outer ring

OpenLayers trac-20090302 at openlayers.org
Tue Dec 7 17:02:56 EST 2010


#2967: infinite recursion getting bounds of polygon with empty outer ring
---------------------------------+------------------------------------------
 Reporter:  tschaub              |       Owner:              
     Type:  bug                  |      Status:  new         
 Priority:  minor                |   Milestone:  2.11 Release
Component:  Geometry.Collection  |     Version:  2.10        
 Keywords:                       |       State:              
---------------------------------+------------------------------------------

Comment(by tschaub):

 If the first component of a collection returns {{{null}}} for
 {{{getBounds}}} and the collection has more than one component, we get
 into infinite recursion (setting the collection bounds {{{null}}} for the
 first component and then assuming we can call {{{extendBounds}}} on the
 collection for the subsequent components - which again calls
 {{{getBounds}}} because bounds is {{{null}}}.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2967#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list