Skip to content

Conversation

@geographika
Copy link
Member

Building and running the latest mapcache from source on Linux (with 3.12.1t64) and running the following command:

mapcache_detail --config /etc/mapcache/mapcache.xml \
    --tileset RoadsNetworkFull \
    --grid GoogleMapsCompatible \
    --extent -959158.2616546892,6776636.979084599,-958505.4972916227,6777878.296881017

Would always result in the following error:

mapcache_detail: Requested geometry is not contained within Grid extent: [ -20037508.3427892476, -20037508.3427892476, 20037508.3427892476, 20037508.3427892476 ]

It seems any extent with a negative value would return this error (even when clearly within the grid).

Strangely, the same command and cache with a Windows build (but with GEOS 3.10.6) would run without any issue.

From trial and error I got the fix below, and the command now runs on Linux also. It seems as though GEOSGeom_createLinearRing requires a fully populated coordinate sequence or it returns an invalid polygon which never overlaps?

@jbo-ads - any insight on the above? And thanks for mapcache_detail - looks a useful tool.

@geographika
Copy link
Member Author

Possibly related #307

@jbo-ads
Copy link
Member

jbo-ads commented Jun 25, 2025

Indeed, seeing your fix, I wonder how it worked at all before.

@geographika geographika merged commit 6be98fa into MapServer:main Jun 26, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants