Changeset 2442 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-11-12T23:17:52+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
r2441 r2442 281 281 + this.bbox.width()+", "+this.bbox.height()+")"); 282 282 } 283 if (children != null) {284 abort("overwrote children");285 }286 children = newChildren();287 283 // deferring allocation of children until use 288 284 // seems a bit faster … … 298 294 continue; 299 295 } 296 if (children == null) 297 children = newChildren(); 300 298 if (children[new_index] == null) { 301 299 children[new_index] = new QBLevel(this, new_index); … … 357 355 boolean matches(T o, BBox search_bbox) 358 356 { 357 // This can be optimized when o is a node 358 //return search_bbox.bounds(coor)); 359 359 return o.getBBox().intersects(search_bbox); 360 360 } … … 490 490 } 491 491 if (child == null) { 492 abort("branch node had no children");492 abort("branch node ("+this+" "+next.isLeaf()+") had no children (content: "+next.content+") this: " + this); 493 493 } 494 494 next = child; … … 568 568 debug = true; 569 569 get_index(n, level); 570 abort("object " + n + " does not belong in node at level: " + level + " bbox: " + this.bbox()); 570 get_index(n, level-1); 571 int nr = 0; 572 for (QBLevel sibling : parent.children) { 573 out("sibling["+ (nr++) +"]: " + sibling.bbox() + " this: " + (this==sibling)); 574 } 575 abort("\nobject " + n + " does not belong in node at level: " + level + " bbox: " + this.bbox()); 571 576 } 572 577 }
Note:
See TracChangeset
for help on using the changeset viewer.