Hi,

I'm trying to style a WMS Layer with external SLD file.
In my mapfile I have set "TEMPPATH" (and not TMPPATH like it is reported in logfile ;-). The directory set in "TEMPPATH" is correctly configured with all needed rights for www-data user.
When the client request the layer with an external SLD, for example :
http://myserver/cartes70/mapserv?map=/opt/data/carto/ref/tests/tests.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=679911.6275017008884,6576590.08276326675,681769.2782967804233,6578369.732751480304&CRS=EPSG:2154&WIDTH=905&HEIGHT=867&LAYERS=N_PM3_ASSIETTE_SUP_S_003&STYLES=&FORMAT=image/png&MAP_RESOLUTION=96&TRANSPARENT=TRUE&SLD=http://externalServer/N_PM3_ASSIETTE_SUP_S.sld

The answer is :
msSLDApplySLDURL: WMS server error. Could not open SLD http://piece-jointe-carto.developpement-durable.gouv.fr/MIG/sldcovadis/N_PM3_ASSIETTE_SUP_S.sld and save it in a temporary file. Please make sure that the sld url is valid and that the temporary path is set. The temporary path can be defined for example by setting TMPPATH in the map file. Please check the MapServer documentation on temporary path settings. msHTTPExecuteRequests(): HTTP request error. HTTP: TIMEOUT of 30 seconds exceeded for http://piece-jointe-carto.developpement-durable.gouv.fr/MIG/sldcovadis/N_PM3_ASSIETTE_SUP_S.sld

I know that is possible to specify ows_proxy_* for a cascaded layer (when MapServer is used as a WMS client). But is there a way to specify a proxy in a mapfile for all ressources needed to style a layer?

Regards

--
Laurent SAËZ

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to