From 547796444a413b4f8b65c13c84902f4feefabd26 Mon Sep 17 00:00:00 2001 From: Stream Date: Sat, 2 May 2026 17:50:02 +0300 Subject: [PATCH] auto-sync: 2026-05-02 17:50:01 --- installer/registry.jsonl | 1 + tasks/enduro-trails/prototype/app.py | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/installer/registry.jsonl b/installer/registry.jsonl index 2d95516..7739cca 100644 --- a/installer/registry.jsonl +++ b/installer/registry.jsonl @@ -14,3 +14,4 @@ {"ts":"2026-04-26T13:59:28Z","session":"20260426-132635_fr24_tracks-date-filter_9506","host":"fr24","status":"success","agent":"stream","files":["/home/fr24/projects/fr24/frontend/main.py"]} {"ts":"2026-05-02T14:28:08Z","session":"20260426-113247_mva154_plane-nginx-ssl_5ad8","host":"mva154","status":"success","agent":"stream"} {"ts":"2026-05-02T14:36:28Z","session":"20260502-142827_mva154_enduro-trails-ycoord-fix_bcfb","host":"mva154","status":"success","agent":"stream","files":["/home/slin/openclaw/config/tasks/enduro-trails/prototype/docker-compose.yml"]} +{"ts":"2026-05-02T14:44:02Z","session":"20260502-144136_mva154_enduro-quantize-fix_1482","host":"mva154","status":"success","agent":"stream","files":["/home/slin/openclaw/config/tasks/enduro-trails/prototype/app.py"]} diff --git a/tasks/enduro-trails/prototype/app.py b/tasks/enduro-trails/prototype/app.py index 03b18ef..c6ed151 100644 --- a/tasks/enduro-trails/prototype/app.py +++ b/tasks/enduro-trails/prototype/app.py @@ -161,14 +161,13 @@ def build_mvt(trails_rows, poi_rows, z, x, y) -> bytes: if not layers: return b"" - # Расширяем quantize_bounds на 10% за каждую сторону - # чтобы точки за пределами тайла не получали пиксели >4096 - dx = (east - west) * 0.1 - dy = (north - south) * 0.1 - + # quantize_bounds ДОЛЖЕН быть точно равен bbox тайла — без буфера. + # Буфер в SQL нужен чтобы захватить треки за границей тайла, + # но quantize_bounds определяет систему координат для MVT-пикселей. + # Любое расширение сдвигает треки относительно подложки. return mapbox_vector_tile.encode( layers, - quantize_bounds=(west - dx, south - dy, east + dx, north + dy), + quantize_bounds=(west, south, east, north), extents=4096, default_options={'y_coord_down': False}, )