Maps should sample a wider area than 11×11 pixels #26

Closed
opened 2023-05-21 22:01:04 +02:00 by paul · 2 comments
Owner

Currently, if the GPS position is in the center of a value drawn on the map, the sampling algorithm only sees black/white values and cannot figure out the actual value. Just sample a wider area to solve this issue (it is cached anyway).

Example query where it fails: https://sinoptik.luon.net/forecast?lat=52&lon=4.5&metric=pollen

See also the corresponding map: https://sinoptik.luon.net/map?lat=52&lon=4.5&metric=pollen

Currently, if the GPS position is in the center of a value drawn on the map, the sampling algorithm only sees black/white values and cannot figure out the actual value. Just sample a wider area to solve this issue (it is cached anyway). Example query where it fails: https://sinoptik.luon.net/forecast?lat=52&lon=4.5&metric=pollen See also the corresponding map: https://sinoptik.luon.net/map?lat=52&lon=4.5&metric=pollen
paul added the
bug
label 2023-05-21 22:01:04 +02:00
Author
Owner

Reported by @stefan.

Reported by @stefan.
Collaborator

Here is a simple patch which sets sampling area to 31x31.

Here is a simple patch which sets sampling area to 31x31.
paul closed this issue 2023-05-24 19:20:46 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: paul/sinoptik#26
No description provided.