[mapserver-users] Dynamic wfs_onlineresource

2019-10-17 Thread Matthias Müller
Hi, we are running WFS services with similar mapfiles on different servers. Setting the "wfs_onlineresource" is straight forward, but requires a hard coded host name: First server: WEB METADATA "wfs_title" "myserver" "wfs_onlineresource" "https://server1.org/mapserver?

Re: [mapserver-users] Dynamic wfs_onlineresource

2019-10-17 Thread Yves Jacolin
Matthias, Just remove the parameter will imply that MapServer will find the correct online resource. Y. Le jeu. 17 oct. 2019 à 11:35, Matthias Müller < matthias_muel...@tu-dresden.de> a écrit : > Hi, > > we are running WFS services with similar mapfiles on different servers. > > Setting the "wf

Re: [mapserver-users] Dynamic wfs_onlineresource

2019-10-17 Thread Matthias Müller
Yves, thanks for the hint - it works, but produces an ugly URL that exposes the FS-Link of the mapfile to the public: https://server1.org/mapserver/?map=/opt/service/mapserver/mapfile.map&"/ > I should have mentioned that a reverse proxy runs in front of Mapserver, that adds the mapfile to the r

Re: [mapserver-users] Doubling of labels on high resolution maps

2019-10-17 Thread Jan Hartmann
No, neither maxsize nor partials works. I guess that's just the way QGIS requests large WMS-images. There is a "tile_metatile_level" configuration directive that should solve this problem: https://mapserver.org/output/tile_mode.html but it does not seem to work for WMS layers. So I used the

Re: [mapserver-users] Doubling of labels on high resolution maps

2019-10-17 Thread lars . schylberg
Hi, The best way is most likely to set up a WMTS service with mapcache. It handles meta tiling in a more proper way. There are good examples in the mapproxy documentation how to do labels in mapserver. https://mapproxy.org/docs/nightly/labeling.html (https://mapproxy.org/docs/nightly/labeling.