Skip to content
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

Tiles get lost #1694

Open
panterlo opened this issue Feb 20, 2025 · 14 comments
Open

Tiles get lost #1694

panterlo opened this issue Feb 20, 2025 · 14 comments
Labels

Comments

@panterlo
Copy link

The video shows the issue (similar with fill, line etc). Source is Postgres.

2025-02-20_12-39-31.mp4

If I export to an MBTiles file with martin-cp same table and repoint MapLibre source to the MBTile served through Martin everything works but for some reason the source Postgres table get's this wierd issue.

@CommanderStorm
Copy link
Collaborator

Hmmm..
Are you maybe using an old postgres version?

@panterlo
Copy link
Author

panterlo commented Feb 20, 2025

I am using

POSTGIS="3.5.2 dea6d0a" [EXTENSION] PGSQL="170" GEOS="3.12.1-CAPI-1.18.1" PROJ="9.4.0 NETWORK_ENABLED=OFF URL_ENDPOINT=https://cdn.proj.org USER_WRITABLE_DIRECTORY=/tmp/proj DATABASE_PATH=/usr/share/proj/proj.db" (compiled against PROJ 9.4.0) LIBXML="2.9.14" LIBJSON="0.17" LIBPROTOBUF="1.4.1" WAGYU="0.5.0 (Internal)"

@CommanderStorm
Copy link
Collaborator

Hmm.. so likely a differnt issue.

The line seems pretty thin.. could this be a styling/rendering issue?
Unlikely though given that martin-cp does solve your issue.

Is the data you are using maybe publicly avaliable somewhere? (can I debug on the same data?)

@CommanderStorm
Copy link
Collaborator

And are there any clues in the network console/ other indicators

@panterlo
Copy link
Author

Nothing in the console, same also applies for fill / polygons.

2025-02-20_11-09-55.mp4

Let me publish our server so you can try out...

@CommanderStorm
Copy link
Collaborator

Let me publish our server

I trust you that this is happening. Publishing said server is not something I nessesarily need ^^

question is what data you are running (maybe OSM?) and whether I can run a debug build agains said data.

@CommanderStorm
Copy link
Collaborator

Do you maybe have max_feature_count configured?

@panterlo
Copy link
Author

oh... terrible.... yeah... I just copied the example and it had max_feature_count: 1000

@panterlo
Copy link
Author

panterlo commented Feb 20, 2025

postgres:
  - connection_string: 'postgresql://postgres:XXX@localhost:5432/lm_top10'
    default_srid: 4326
    pool_size: 20
    max_feature_count: 10000
    auto_bounds: skip
    auto_publish:
      tables:
        source_id_format: 'lm_top10.table.{schema}.{table}.{column}'
        id_columns: fid
        clip_geom: true
        buffer: 64
        extent: 4096
      functions:
        source_id_format: '{schema}.{function}'

@CommanderStorm
Copy link
Collaborator

Did increasing the parametr solve your issue?

We should likely change the value we show to null

@panterlo
Copy link
Author

Now at least some zoom levels are working but still kind of weird issues like this:

2025-02-20_14-15-17.mp4

@panterlo
Copy link
Author

You can now use

  // Uses Postgres
   "mark1m": {
      "type": "vector",
      "url": "https://tiles.tic.io/lm_top1m.table.public.mark.geom"
    },
  // Exported MBTiles from same table as above
    "markkantlinje1m": {
      "type": "vector",
      "url": "https://tiles.tic.io/markkantlinje"
    },

nyurik added a commit that referenced this issue Feb 20, 2025
This PR tries to make the logic behind `max_feature_count` a bit clearer
and adds a short example when/why one would activate this

Related #1694

---------

Co-authored-by: Yuri Astrakhan <[email protected]>
@nyurik

This comment has been minimized.

@CommanderStorm

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants