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

How To Debug? Cannot Fetch Tiles When Serving From Mbtiles #1374

Closed
jlpoolen opened this issue Jun 15, 2024 · 4 comments
Closed

How To Debug? Cannot Fetch Tiles When Serving From Mbtiles #1374

jlpoolen opened this issue Jun 15, 2024 · 4 comments
Labels

Comments

@jlpoolen
Copy link

Would someone please provide me some troubleshooting suggestions on how to retrieve a response with meaningful data from my freshly minted martin server which is configured to serve up mbtiles. My attempts are failing. The mbtiles file is valid and works under the openmaptile server.

I am unable to test whether martin can successfully return a tile from mbtiles.

Configuration File

root@debian1:/home/jlpoole/martin# ls -la martin_1.config
-rwxrwxrwx 1 root root 79 Jun  9 20:24 martin_1.config
root@debian1:/home/jlpoole/martin# cat -n martin_1.config
     1  mbtiles:
     2    sources:
     3      jlptiles: "/home/jlpoole/MapLibre/local/tiles.mbtiles"
root@debian1:/home/jlpoole/martin# 

mbtiles verification and summary

Here is confirmation my mbtiles file passes validation. Moreover, I have successfully used the mbtiles file in the opanmaptile project.

    jlpoole@debian1:~/martin$ date; time ./rust/martin/target/release/mbtiles validate /home/jlpoole/MapLibre/local/tiles.mbtiles
    Sat Jun 15 03:27:01 PM PDT 2024
    [INFO ] Quick integrity check passed for /home/jlpoole/MapLibre/local/tiles.mbtiles
    [INFO ] All values in the `tiles` table/view are valid for /home/jlpoole/MapLibre/local/tiles.mbtiles
    [INFO ] All tile hashes are valid for /home/jlpoole/MapLibre/local/tiles.mbtiles
    [INFO ] The agg_tiles_hashes=713D17A859EC3869B600DF30043FC792 has been verified for /home/jlpoole/MapLibre/local/tiles.mbtiles

    real    0m4.413s
    user    0m2.505s
    sys     0m1.895s
    jlpoole@debian1:~/martin$ date; time ./rust/martin/target/release/mbtiles summary /home/jlpoole/MapLibre/local/tiles.mbtiles
    Sat Jun 15 03:27:45 PM PDT 2024
    MBTiles file summary for /home/jlpoole/MapLibre/local/tiles.mbtiles
    Schema: normalized
    File size: 336.58MiB
    Page size: 4.00KiB
    Page count: 86166

     Zoom |   Count   | Smallest  |  Largest  |  Average  | Bounding Box
        0 |         1 |   10.7KiB |   10.7KiB |   10.7KiB | -180,-85,180,85
        1 |         1 |   18.8KiB |   18.8KiB |   18.8KiB | -180,0,0,85
        2 |         1 |   13.6KiB |   13.6KiB |   13.6KiB | -180,0,-90,67
        3 |         1 |    9.6KiB |    9.6KiB |    9.6KiB | -135,41,-90,67
        4 |         1 |   16.8KiB |   16.8KiB |   16.8KiB | -135,41,-113,56
        5 |         2 |    8.2KiB |   27.7KiB |   17.9KiB | -135,41,-112,49
        6 |         6 |    6.4KiB |   30.4KiB |   15.0KiB | -129,41,-113,49
        7 |        12 |    6.7KiB |   63.1KiB |   22.6KiB | -127,41,-115,47
        8 |        48 |      945B |   63.4KiB |   16.7KiB | -127,41,-115,47
        9 |       150 |       20B |  106.0KiB |   11.6KiB | -127,42,-116,47
       10 |       522 |       20B |   82.8KiB |    6.0KiB | -127,42,-116,46
       11 |      2030 |       20B |   78.7KiB |    3.0KiB | -126.6,41.9,-116.4,46.3
       12 |      8050 |       20B |  108.0KiB |    2.9KiB | -126.5,41.9,-116.4,46.3
       13 |     31692 |       20B |   98.6KiB |    1.9KiB | -126.4,41.9,-116.4,46.3
       14 |    125758 |       20B |  233.2KiB |    1.4KiB | -126.41,41.95,-116.43,46.32
      all |    168275 |       20B |  233.2KiB |    1.6KiB | -180.00,-85.05,180.00,85.05


    real    0m0.586s
    user    0m0.345s
    sys     0m0.249s
    jlpoole@debian1:~/martin$

Here are 1) confirmation of catalog and 2) my attempts to fetch tiles:

    jlpoole@debian1:~/martin$ date; curl http://localhost:3000/catalog
    Sat Jun 15 03:24:32 PM PDT 2024
    {"tiles":{"jlptiles":{"content_type":"application/x-protobuf","content_encoding":"gzip","name":"OpenMapTiles","description":"A tileset showcasing all layers in OpenMapTiles. https://openmaptiles.org","attribution":"<a href=\"https://www.openmaptiles.org/\" target=\"_blank\">&copy; OpenMapTiles</a> <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">&copy; OpenStreetMap contributors</a>"}},"sprites":{},"fonts":{}}jlpoole@debian1:~/martin$ 
    jlpoole@debian1:~/martin$ date; curl -I http://localhost:3000/tiles/jlptiles/0/0/0.pbf
    Sat Jun 15 03:24:54 PM PDT 2024
    HTTP/1.1 404 Not Found
    content-length: 0
    vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers
    date: Sat, 15 Jun 2024 22:24:53 GMT

    jlpoole@debian1:~/martin$ date; curl -I http://localhost:3000/tiles/0/0/0.pbf
    Sat Jun 15 03:25:07 PM PDT 2024
    HTTP/1.1 404 Not Found
    content-length: 30
    vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers
    content-type: text/plain; charset=utf-8
    date: Sat, 15 Jun 2024 22:25:07 GMT

    jlpoole@debian1:~/martin$ date; curl -I http://localhost:3000/0/0/0.pbf
    Sat Jun 15 03:25:11 PM PDT 2024
    HTTP/1.1 404 Not Found
    content-length: 0
    vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers
    date: Sat, 15 Jun 2024 22:25:11 GMT

    jlpoole@debian1:~/martin$ date; curl -I http://localhost:3000/tiles/OpenMapTiles/0/0/0.pbf
    Sat Jun 15 03:25:42 PM PDT 2024
    HTTP/1.1 404 Not Found
    content-length: 0
    vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers
    date: Sat, 15 Jun 2024 22:25:42 GMT

    jlpoole@debian1:~/martin$ date; curl -I http://localhost:3000/OpenMapTiles/0/0/0.pbf
    Sat Jun 15 03:25:50 PM PDT 2024
    HTTP/1.1 404 Not Found
    content-length: 30
    content-type: text/plain; charset=utf-8
    vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers
    date: Sat, 15 Jun 2024 22:25:49 GMT

    jlpoole@debian1:~/martin$

Git info:

    root@debian1:/home/jlpoole/martin/rust/martin# git pull
    Already up to date.
    root@debian1:/home/jlpoole/martin/rust/martin# git show --oneline -s
    68aca37 (HEAD -> main, origin/main, origin/HEAD) fix ci, dep bump
    root@debian1:/home/jlpoole/martin/rust/martin# date; time cargo build --release
    Sat Jun 15 03:19:06 PM PDT 2024
        Updating crates.io index
      Downloaded zerofrom v0.1.4
      Downloaded actix-server v2.4.0
      Downloaded write16 v1.0.0
      Downloaded actix-web-codegen v4.3.0
      Downloaded actix-rt v2.10.0
      Downloaded utf16_iter v1.0.5
    ...
       Compiling martin v0.13.0 (/home/jlpoole/martin/rust/martin/martin)
        Finished `release` profile [optimized] target(s) in 59.15s

    real    0m59.295s
    user    9m24.958s
    sys     1m15.587s
    root@debian1:/home/jlpoole/martin/rust/martin# 

    nothing to commit, working tree clean
    root@debian1:/home/jlpoole/martin/rust/martin# 

Rust info:

    root@debian1:/home/jlpoole/martin# rustc --version
    rustc 1.78.0 (9b00956e5 2024-04-29)
    root@debian1:/home/jlpoole/martin# root@debian1:/home/jlpoole/martin/rust/martin# date; cargo build --release
    Sat Jun 15 03:41:05 PM PDT 2024
        Finished `release` profile [optimized] target(s) in 0.24s
    root@debian1:/home/jlpoole/martin/rust/martin# 

Environment:

root@debian1:/home/jlpoole/martin# cat /etc/os-release 
 PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
 NAME="Debian GNU/Linux"
 VERSION_ID="12"
 VERSION="12 (bookworm)"
 VERSION_CODENAME=bookworm
 ID=debian
 HOME_URL="https://www.debian.org/"
 SUPPORT_URL="https://www.debian.org/support"
 BUG_REPORT_URL="https://bugs.debian.org/"
 root@debian1:/home/jlpoole/martin# uname -a
 Linux debian1 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux
 root@debian1:/home/jlpoole/martin# 
Server session with DEBUG:
    root@debian1:/home/jlpoole/martin# date; martin -c ./martin_1.config
    Sat Jun 15 03:23:59 PM PDT 2024
    [2024-06-15T22:23:59Z INFO  martin] Starting Martin v0.13.0
    [2024-06-15T22:23:59Z INFO  martin] Using ./martin_1.config
    [2024-06-15T22:23:59Z INFO  martin::config] Initializing main cache with maximum size 536870912B
    [2024-06-15T22:23:59Z INFO  martin::file_config] Configured source jlptiles from /home/jlpoole/MapLibre/local/tiles.mbtiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="PRAGMA foreign_keys = ON; ?" db.statement="\n\nPRAGMA foreign_keys = ON;\n" rows_affected=0 rows_returned=0 elapsed=85.03µs
    [2024-06-15T22:23:59Z INFO  mbtiles::metadata] tiles has an unrecognized metadata value tilejson=2.1.0
    [2024-06-15T22:23:59Z INFO  mbtiles::metadata] tiles has an unrecognized metadata value pixel_scale=256
    [2024-06-15T22:23:59Z INFO  mbtiles::metadata] tiles has an unrecognized metadata value maskLevel=8
    [2024-06-15T22:23:59Z INFO  mbtiles::metadata] tiles has an unrecognized metadata value scheme=tms
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT name, value FROM ?" db.statement="\n\nSELECT\n  name,\n  value\nFROM\n  metadata\nWHERE\n  value IS NOT ''\n" rows_affected=0 rows_returned=17 elapsed=505.266µs
    [2024-06-15T22:23:59Z INFO  mbtiles::metadata] tiles has an unrecognized metadata value id=openmaptiles
    [2024-06-15T22:23:59Z INFO  mbtiles::metadata] tiles has an unrecognized metadata value filesize=352915456
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 0/0/0 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT zoom_level, tile_column, tile_row, ?" db.statement="\n\nSELECT\n  zoom_level,\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level >= 0\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=243.818µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 1/0/0 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=176.612µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 2/0/1 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=82.755µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 3/1/2 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=65.083µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 4/2/5 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=114.486µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 5/4/11 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=47.299µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 6/9/23 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=92.016µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 7/19/47 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=101.67µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 8/38/95 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=41.619µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 9/76/190 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=69.061µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 10/152/380 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=86.733µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 11/304/760 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=100.278µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 12/609/1521 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=63.55µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 13/1219/3042 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=59.972µs
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Tile 14/2439/6084 is detected as application/x-protobuf; encoding=gzip in file tiles
    [2024-06-15T22:23:59Z DEBUG mbtiles::validation] Detected tile format application/x-protobuf; encoding=gzip matches metadata.format 'mvt' in file tiles
    [2024-06-15T22:23:59Z INFO  martin] Use --save-config to save or print Martin configuration.
    [2024-06-15T22:23:59Z DEBUG sqlx::query] summary="SELECT tile_column, tile_row, tile_data ?" db.statement="\n\nSELECT\n  tile_column,\n  tile_row,\n  tile_data\nFROM\n  tiles\nWHERE\n  zoom_level = ?\nLIMIT\n  1\n" rows_affected=0 rows_returned=1 elapsed=42.669µs
    [2024-06-15T22:23:59Z INFO  actix_server::builder] starting 24 workers
    [2024-06-15T22:23:59Z INFO  martin] Martin has been started on 0.0.0.0:3000.
    [2024-06-15T22:23:59Z INFO  martin] Use http://0.0.0.0:3000/catalog to get the list of available sources.
    [2024-06-15T22:23:59Z INFO  actix_server::server] Actix runtime found; starting in Actix runtime
    [2024-06-15T22:24:32Z INFO  actix_web::middleware::logger] 127.0.0.1 "GET /catalog HTTP/1.1" 200 434 "-" "curl/7.88.1" 0.011634
    [2024-06-15T22:24:54Z INFO  actix_web::middleware::logger] 127.0.0.1 "HEAD /tiles/jlptiles/0/0/0.pbf HTTP/1.1" 404 0 "-" "curl/7.88.1" 0.000104
    [2024-06-15T22:25:07Z DEBUG actix_web::types::path] Failed during Path extractor deserialization. Request path: "/tiles/0/0/0.pbf"
    [2024-06-15T22:25:07Z DEBUG actix_web::middleware::logger] Error in response: Error("can not parse \"0.pbf\" to a u32")
    [2024-06-15T22:25:07Z INFO  actix_web::middleware::logger] 127.0.0.1 "HEAD /tiles/0/0/0.pbf HTTP/1.1" 404 30 "-" "curl/7.88.1" 0.011617
    [2024-06-15T22:25:11Z INFO  actix_web::middleware::logger] 127.0.0.1 "HEAD /0/0/0.pbf HTTP/1.1" 404 0 "-" "curl/7.88.1" 0.000076
    [2024-06-15T22:25:42Z INFO  actix_web::middleware::logger] 127.0.0.1 "HEAD /tiles/OpenMapTiles/0/0/0.pbf HTTP/1.1" 404 0 "-" "curl/7.88.1" 0.000112
    [2024-06-15T22:25:50Z DEBUG actix_web::types::path] Failed during Path extractor deserialization. Request path: "/OpenMapTiles/0/0/0.pbf"
    [2024-06-15T22:25:50Z DEBUG actix_web::middleware::logger] Error in response: Error("can not parse \"0.pbf\" to a u32")
    [2024-06-15T22:25:50Z INFO  actix_web::middleware::logger] 127.0.0.1 "HEAD /OpenMapTiles/0/0/0.pbf HTTP/1.1" 404 30 "-" "curl/7.88.1" 0.000122
    ^C[2024-06-15T22:29:26Z INFO  actix_server::server] SIGINT received; starting forced shutdown
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z DEBUG actix_server::accept] paused accepting connections on 0.0.0.0:3000
    [2024-06-15T22:29:26Z INFO  actix_server::accept] accept thread stopped
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    [2024-06-15T22:29:26Z INFO  actix_server::worker] shutting down idle worker
    root@debian1:/home/jlpoole/martin# date
    Sat Jun 15 03:29:37 PM PDT 2024
    root@debian1:/home/jlpoole/martin# 

Since I'm building the server with rust, I can insert some debugging statement if provided to me. I'm new to rust and would need explicit instructions were I to alter any of the Cargo.toml to accommodate inserted code.

Thank you.

@nyurik
Copy link
Member

nyurik commented Jun 16, 2024

Use http://localhost:3000/jlptiles -- per documentation, tile source ID is the top level value, without tiles/

@jlpoolen
Copy link
Author

Use http://localhost:3000/jlptiles -- per documentation, tile source ID is the top level value, without tiles/

That works. Thank you!


jlpoole@debian1:~/martin$ date; curl -I http://localhost:3000/jlptiles/0/0/0
Sat Jun 15 08:05:49 PM PDT 2024
HTTP/1.1 200 OK
content-length: 17734
content-type: application/x-protobuf
vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers
date: Sun, 16 Jun 2024 03:05:49 GMT

jlpoole@debian1:~/martin$ date; curl -I http://localhost:3000/jlptiles
Sat Jun 15 08:06:11 PM PDT 2024
HTTP/1.1 200 OK
content-length: 24031
content-type: application/json
vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers
date: Sun, 16 Jun 2024 03:06:10 GMT

jlpoole@debian1:~/martin$ date; curl  http://localhost:3000/jlptiles
Sat Jun 15 08:06:23 PM PDT 2024
{"tilejson":"3.0.0","tiles":["http://localhost:3000/jlptiles/{z}/{x}/{y}"],"vector_layers":[{"id":"water","fields":{"brunnel":"String","class":"String","id":"Number","intermittent":"Number"},"description":"Water polygons representing oceans and lakes. Covered watered areas are excluded (`covered=yes`).\nOn low zoom levels all water originates from Natural Earth. To get a more correct display of the south pole you should also\nstyle the covering ice shelves over the water.\nOn higher zoom levels water polygons from [OpenStreetMapData](http://osmdata.openstreetmap.de/) are used.\nThe polygons are split into many smaller polygons to improve rendering performance.\nThis however can lead to less rendering options in clients since these boundaries show up. So you might not be\nable to use border styling for ocean water features.","maxzoom":14,"minzoom":0},{"id":"waterway","fields":{"brunnel":"String","class":"String","intermittent":"Number","name":"String","name:am":"String","name:ar":"String","name:az":"String","name:be":"String","name:bg":"String","name:bn":"String","name:br":"String","name:bs":"String","name:ca":"
...

Would this the the URL to the documentation you are referring to? https://maplibre.org/martin/using.html?highlight=%22source%20ID%22#reserved-source-ids

@nyurik
Copy link
Member

nyurik commented Jun 16, 2024

yep, that's the page, esp these:

/{sourceID} Source TileJSON
/{sourceID}/{z}/{x}/{y} Map Tiles

@jlpoolen
Copy link
Author

Thank you.

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

2 participants