so i finally got to investigate this a bit more and found a solution... i
encoded the layers list in the mapfile and it works. Why? I don't know... it
seems to me it shouldn't work but it does...
Here are my findings:
1) mapfile without encoding the layers list gives the error "layers contains
unacceptable layer names"
in the mapfile I put:
"wms_name" "Albufeiras 1ria,Regadio EFMA simples,Adução simples" #note
the non-english characters and spaces
mapserver logs the request like this:
....LAYERS=Albufeiras+1ria,Regadio+EFMA+simples,Adu%E7%E3o+simples&....
the original wms server logs this (iis):
LAYERS=Albufeiras+1ria%2cRegadio+EFMA+simples%2cAdu%25C3%25A7%25C3%25A3o%2520simples
2) mapfile encoding the layers list works fine
in the mapfile I put:
"wms_name"
"Albufeiras%201ria,Regadio%20EFMA%20simples,Adu%C3%A7%C3%A3o%20simples"
#encode everything except the commas
mapserver logs the request like this:
....LAYERS=Albufeiras%25201ria,Regadio%2520EFMA%2520simples,Adu%25C3%25A7%25C3%25A3o%2520simples&....
the original wms server logs this (iis):
LAYERS=Albufeiras%25201ria%2cRegadio%2520EFMA%2520simples%2cAdu%25C3%25A7%25C3%25A3o%2520simples
All tests were done using QGIS as the client to MapServer, which then
cascades to arcgis server wms in windows.
Also, putting the layers in the connection as suggested did not work because
then the resquest ends up with 2 layers parameters, one empty, which also
results in the same error.
All the best.
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/cascading-wms-and-layer-names-encoding-tp5058504p5060918.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users