[mapserver-users] Dynamic wfs_onlineresource
Yves Jacolin
yves.jacolin at camptocamp.com
Thu Oct 17 02:37:16 PDT 2019
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_mueller at 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 at 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.jacolin at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20191017/16284595/attachment.htm>
More information about the MapServer-users
mailing list