Ignore:
Timestamp:
2009-11-11T08:34:56+01:00 (14 years ago)
Author:
jttt
Message:

Cache bbox for Way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java

    r2430 r2437  
    206206        {
    207207            init(parent);
    208         }
    209         String quads(T o)
    210         {
    211             if (o instanceof Node) {
    212                 LatLon coor = ((Node)o).getCoor();
    213                 if (coor == null)
    214                     return "null node coordinates";
    215                 return Long.toHexString(QuadTiling.quadTile(coor));
    216             }
    217             return "Way??";
    218208        }
    219209        synchronized boolean remove_content(T o)
     
    302292                QBLevel child = children[new_index];
    303293                if (debug) {
    304                     out("putting "+o+"(q:"+quads(o)+") into ["+new_index+"] " + child.bbox());
     294                    out("putting "+o+"(q:"+Long.toHexString(QuadTiling.quadTile(o.getBBox().points().get(0)))+") into ["+new_index+"] " + child.bbox());
    305295                }
    306296                child.add(o);
Note: See TracChangeset for help on using the changeset viewer.