Bounding box values cast to int in TileProxyController::isInBoundingBox #13

Closed
opened 2026-05-15 16:39:30 +02:00 by gert.hammes.ba · 2 comments

In TileProxyController::isInBoundingBox lines 62 - 65 the bounding box values are cast to integers with intval.
https://git.codemacher.de/codemacher/tile_proxy/src/branch/main/Classes/Controller/TileProxyController.php#L62

This causes the map to be empty, if a small bounding box is used, e.g. 8.16,49.96,8.39,50.04
This would be cast to 8,49,8,50 so the bounding box is empty

The cast should be changed to floatval.

Tested with TYPO3 14.3

In TileProxyController::isInBoundingBox lines 62 - 65 the bounding box values are cast to integers with intval. https://git.codemacher.de/codemacher/tile_proxy/src/branch/main/Classes/Controller/TileProxyController.php#L62 This causes the map to be empty, if a small bounding box is used, e.g. `8.16,49.96,8.39,50.04` This would be cast to `8,49,8,50` so the bounding box is empty The cast should be changed to floatval. Tested with TYPO3 14.3
Owner

Hi,

welcome and thank you for reporting.
I'll take a look at it next week.

Best regards

Hi, welcome and thank you for reporting. I'll take a look at it next week. Best regards
trokohl referenced this issue from a commit 2026-05-18 17:10:38 +02:00
Owner

Built-in and released

Built-in and released
Sign in to join this conversation.
No milestone
No project
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
codemacher/tile_proxy#13
No description provided.