Changes between Initial Version and Version 2 of Ticket #13361


Ignore:
Timestamp:
2016-08-18T22:49:29+02:00 (8 years ago)
Author:
Don-vip
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13361

    • Property Summary What is the bbox of an incomplete OSM primitive?[Patch] What is the bbox of an incomplete OSM primitive?
  • Ticket #13361 – Description

    initial v2  
    1 I stumbled over this while analysing performance problems in the
    2 QuadBuckets.search(BBox searchBbox) method.
     1I stumbled over this while analysing performance problems in the QuadBuckets.search(BBox searchBbox) method.
    32
    43I noticed that incomplete primitives have quite confusing bboxes:
     
    109    ymin = Double.POSITIVE_INFINITY
    1110    ymax = Double.NEGATIVE_INFINITY
    12 if all nodes are incomplete, else it will
    13 be the bbox of the complete node(s).
    14 3) a relation with eg. just two node members
    15 where one is complete at (10,40) and the other
    16 is incomplete will span a huge area from
     11if all nodes are incomplete, else it will be the bbox of the complete node(s).
     123) a relation with eg. just two node members where one is complete at (10,40) and the other is incomplete will span a huge area from
    1713    xmin = 0
    1814    xmax = 40
     
    2016    ymax = 10
    2117
    22 I would expect that the bbox of a relation is only
    23 calculated using the complete nodes.
     18I would expect that the bbox of a relation is only calculated using the complete nodes.
    2419
    25 I'd also prefer when the bbox of incomplete nodes would not be located
    26 at (0,0), but I assume that there are good reasons for this.
    27 
     20I'd also prefer when the bbox of incomplete nodes would not be located at (0,0), but I assume that there are good reasons for this.