[openstreetmap/openstreetmap-website] Set bounding box size limits based on surface dimensions (Issue #4910)
Christoph Hormann
notifications at github.com
Wed Jun 19 19:12:58 UTC 2024
> One small thing is that I did consider using the diagonal size rather than width+length but my brief tests suggested it caused more variation as the shape of the box changed from square to elongated.
This goes a bit beyond this issue - but mathematically what you currently do (width+length) is the _L1 norm_. The diagonal size would be the _L2 norm_. At the other end of the scale (see https://en.wikipedia.org/wiki/Lp_space) you have the L<sup>inf</sup> norm, which would be `max(width, length)`.
I don't think which of these you choose ultimately matters since:
* you do this in a highly distorted equirectangular projection anyway.
* the bounding box is a highly suboptimal measure for spatial extent of the impact an edit has on the map, even if it was in a low distortion projection.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4910#issuecomment-2179337027
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/4910/2179337027 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240619/3054b1d9/attachment.htm>
More information about the rails-dev
mailing list