Skip to content

Commit d8071c2

Browse files
committed
fix(tilepack-api): ensure the gsd is used instead of passed zoom params if canonical=false
1 parent 7190101 commit d8071c2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

backend/tilepack-api/internal/handler/handler.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,11 @@ func (h *Handler) postTilepack(w http.ResponseWriter, r *http.Request) {
230230
writeJSON(w, http.StatusBadGateway, response{Status: "error", Message: "could not create job"})
231231
return
232232
}
233-
log.Printf("worker started: stac_id=%s format=%s zoom=%d-%d", id, format, minZoom, maxZoom)
233+
if canonical {
234+
log.Printf("worker started: stac_id=%s format=%s zoom=auto (gsd=%.4f)", id, format, gsd)
235+
} else {
236+
log.Printf("worker started: stac_id=%s format=%s zoom=%d-%d", id, format, minZoom, maxZoom)
237+
}
234238
writeJSON(w, http.StatusAccepted, response{Status: "started"})
235239
}
236240

0 commit comments

Comments
 (0)