Changes between Initial Version and Version 1 of Ticket #5558


Ignore:
Timestamp:
Sep 29, 2023, 5:23:27 AM (8 months ago)
Author:
Laurenz Albe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5558 – Description

    initial v1  
    2424}}}
    2525
    26 I guess it should be initialized to zero, as in the following patch:
    27 
    28 {{{#!diff
    29 diff --git a/postgis/mvt.c b/postgis/mvt.c
    30 index 8aa916052..64bb28edb 100644
    31 --- a/postgis/mvt.c
    32 +++ b/postgis/mvt.c
    33 @@ -881,6 +881,7 @@ mvt_clip_and_validate_geos(LWGEOM *lwgeom, uint8_t basic_type, uint32_t extent,
    34         GBOX bgbox;
    35         bgbox.xmax = bgbox.ymax = (double)extent + (double)buffer;
    36         bgbox.xmin = bgbox.ymin = -(double)buffer;
    37 +       bgbox.flags = 0;
    38         FLAGS_SET_GEODETIC(bgbox.flags, 0);
    39  
    40         ng = mvt_unsafe_clip_by_box(ng, &bgbox);
    41 }}}
     26I cannot suggest a patch, because I don't know to what value the `flags` should be initialized.