Opened 28 hours ago

Last modified 4 hours ago

#5836 new defect

Different result with same table and same query in various PostGIS versions — at Version 1

Reported by: zhangyijun Owned by: pramsey
Priority: medium Milestone:
Component: postgis Version: 3.5.x
Keywords: Cc:

Description (last modified by zhangyijun)

Hi! Have a nice day It seems we got different results with same table and same query,

The TABLE is: https://github.com/maplibre/martin/blob/935c6b624fde3a7ba48443ff66e4cf6312b6ef1e/tests/fixtures/tables/table_source.sql you could execute this sql to init the table.

The QUERY is :

SELECT
      ST_AsMVT(tile, 'table_source', 4096, 'geom')
    FROM (
      SELECT
        ST_AsMVTGeom(
            ST_Transform(ST_CurveToLine("geom"::geometry), 3857),
            ST_TileEnvelope($1::integer, $2::integer, $3::integer),
            4096, 64, true
        ) AS geom
        , "gid"
      FROM
        "public"."table_source"
      WHERE
        "geom" && ST_Transform(ST_TileEnvelope($1::integer, $2::integer, $3::integer, margin => 0.015625), 4326)
      
    ) AS tile;

The RESULT is different with postgis/postgis:14-3.3 and postgis/postgis:14-3.5 DOCKER IMAGES.

z 1 x 1 y 1 ⇒ (BLOB) 2 bytes with postgis/postgis:14-3.3

z 1 x 1 y 1 ⇒ (BLOB) 607 bytes with postgis/postgis:14-3.5

z 1 x 1 y 0 ⇒ (BLOB) 2 bytes with postgis/postgis:14-3.3

z 1 x 1 y 0 ⇒ (BLOB) 1.18 KB with postgis/postgis:14-3.5

Change History (1)

comment:1 by zhangyijun, 27 hours ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.