-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure PG 16+ generate same result as PG15 and before #1651
Comments
Less features returned by PostGIS whose version below 3.5.?
To verify and duplicate this:
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; I jsut paste the results here in case someone need it:
|
Different features order with various PostGIS versionsI think we could pay less attention on this as there is no guarantee the orders should be same without an |
pmt2_0_0_0.png.txt changed after update to potsgis:14-3.3But defintely postgis couldn't be the reason. There must be something else. From this
to
|
So now we have 3 problems..
|
It may take too long to wait the PostGIS upstream issue be reseloved. |
Try to fix #1651 - [x] Ignore `*.pbf` as the features ordering has changed - [x] Use `ogrmerge of gdal` to generate the description text of `*.pbf` files - [x] Add "gid" to `function_Mixed_Name.sql` for `jq` sorting - [x] Upgrade to PostGIS:15-3.4 - [x] Add verification of gdal-bin in `test.sh` - [x] Just bless - [x] Update doc
Version matrix(all tested on docker image only):
Things to track:
|
@CommanderStorm suggested we may need to add a warning when PostGIS version below than 3.5.?. I personally think we should add the warning with an issue link which has more deep/detail information about this bug. Seems we have no such a link about this by now. I remember that you said someone talk about something similar on slack, would you mind @me there? My name is Lucas on slack CC @nyurik |
Linking this very issue -> #1651 (comment) might be a good choice.. what do you think? 🤔 |
Related to #1651 - [x] Upgrade our postgis version to 16-3.5 - [x] Update mbtiles fixtures
Good idea. @CommanderStorm And I update some descriptions here to make it more clearly. |
Your English is excellent, no complaints/.. there. Don't worry about that ever ^^ (To be fair: it is also not a native language for me) |
It seems there might be some cases when Martin does not generate the same result in PG 16 as in versions before. More importantly, sometimes martin-cp generates a different number of tiles from it too. We must get a very clear understanding of why it differs, and try to make them the same again.
see also #1642 for a great analysis of this issue by @sharkAndshark
The text was updated successfully, but these errors were encountered: