Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

WMTS KVP issue #142

Open
landpoint opened this issue Mar 14, 2019 · 0 comments
Open

WMTS KVP issue #142

landpoint opened this issue Mar 14, 2019 · 0 comments

Comments

@landpoint
Copy link

landpoint commented Mar 14, 2019

I enabled the rewrite items under WMTS KVP, but the server is throwing the following error when trying to access:

[Thu Mar 14 19:48:05.323904 2019] [rewrite:error] [pid 31] [client 10.0.3.1:58248] AH02596: RewriteRule '^' and URI '/Tiles/2019-0000_C93DB669ECBB2A872BD919962EF70B3D/wmts' exceeded maximum number of rounds (32000) via the [N] flag
10.0.3.1 - - [14/Mar/2019:19:48:04 +0000] "GET /Tiles/2019-0000_C93DB669ECBB2A872BD919962EF70B3D/wmts?Request=GetTile&Service=WMTS&Version=1.0.0&Layer=2019-0000_732_BA3866600C3540F67C1E9575E213BE0A&TileMatrixSet=WGS84&TileMatrix=19&TileRow=212882&TileCol=1
13608&Format=image%2fpng HTTP/1.1" 500 811

The Request was: wmts?Request=GetTile&Service=WMTS&Version=1.0.0&Layer=2019-0000_732_BA3866600C3540F67C1E9575E213BE0A&TileMatrixSet=WGS84&TileMatrix=19&TileRow=212882&TileCol=113608&Format=image%2fpng

.htaccess area
#variable order of keys: TODO: sort the same way as mime-extension to fixed order
RewriteCond %{QUERY_STRING} ^.*request=gettile.*layer=([\w\d.-]+).*tilematrix=(\d+).*tilerow=(\d+).*tilecol=(\d+).format=(\w+).$ [NC]
RewriteRule ^ %1/%2/%3/%4.%5 [N]
RewriteCond %{QUERY_STRING} ^.*request=gettile.*layer=([\w\d.
-]+).*format=(\w+).*tilematrix=(\d+).*tilerow=(\d+).tilecol=(\d+).$ [NC]
RewriteRule ^ %1/%3/%5/%4.%2 [N]
RewriteCond %{QUERY_STRING} ^.*request=gettile.*layer=([\w\d._-]+).*tilematrix=(\d+).*tilecol=(\d+).*tilerow=(\d+).format=(\w+).$ [NC]
RewriteRule ^ %1/%2/%4/%3.%5 [N]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant