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 "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?";
>       "wfs_srs"            "EPSG:4326"
>       "wfs_enable_request" "*"  # necessary
>     END
>   END
>
>
> Second server:
>   WEB
>     METADATA
>       "wfs_title"          "myserver"
>       "wfs_onlineresource" "https://server2.org/mapserver?";
>       "wfs_srs"            "EPSG:4326"
>       "wfs_enable_request" "*"  # necessary
>     END
>   END
>
>
> I there way to let mapserver figure out the hostname from the request
> and create the appropiate links in the WFS capabilities accordingly?
>
> Something like:
>
>   WEB
>     METADATA
>       "wfs_title"          "myserver"
>       "wfs_online
> resource" "{request protocol and hostname}/mapserver?"
>       "wfs_srs"
>           "EPSG:4326"
>       "wfs_enable_request" "*"  # necessary
>     END
>   END
>
>
> -Matthias
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



-- 
Yves Jacolin
Training and support manager - Team Manager
Camptocamp

Tel (France) : +33 4 58 48 20 43
Tel (Switzerland) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21

email : yves.jaco...@camptocamp.com
http://www.camptocamp.com
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to