mousebird-consulting-inc / WhirlyGlobe

WhirlyGlobe Development
Other
828 stars 254 forks source link

Coordinate differences between vectors and wide vectors #1476

Open TimSylvester opened 2 years ago

TimSylvester commented 2 years ago

Coordinates are handled slightly differently leading to gaps in small objects when drawing both with the same inputs. Setting kMaplyVecCentered: false for vectors seems to improve this somewhat, implying that wide vectors should support that same functionality.

image

segecey commented 2 years ago

@TimSylvester-mousebird any changes?

TimSylvester commented 2 years ago

@0x73 No, nothing has been done to address this. It only occurs at very small scales, and isn't a priority for the client in whose project I noticed it.

segecey commented 2 years ago

@TimSylvester-mousebird I got it. I have same issue. Could you check it? Do you have any suggestion for me? Thanks.

Screen Shot 2022-01-10 at 21 45 49
TimSylvester commented 2 years ago

The problem referred to in this issue is about coordinate precision and centering, and I would guess is unrelated to issues with such large items, though I can't rule it out.

Specific to the lines not following the edges of the areas, my first inclination would be toward different subdivide options. The subdividing process will need to make the same changes to both sets of points, or one needs to be created from the other after it's already already-subdivided, in order for the results to match up.