[mapserver-users] Styling a WFS ? or not ?

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon May 31 05:36:04 PDT 2021


Hi Mathias,

Styling of WFS services happens on the client-side.  For example, see 
this WFS-client layer example, where you can set any color that you wish 
for this 'continents' layer that is served through a remote WFS service 
: https://www.mapserver.org/ogc/wfs_client.html#example-wfs-layer  You 
can copy/paste that entire layer into your own mapfile (and change the 
COLOR values) and then execute it with a shp2img command, to see what I 
mean.

Hope that helps,

-jeff



-- 
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-05-31 7:20 a.m., mathias cunault via mapserver-users wrote:
> Hello,
> It seems that styling a WFS is nonsense according to what I found on the 
> net (?). And I couldn't do it until now. But in Mapserver doc there is 
> an example with a WFS and a style 
> https://www.mapserver.org/ogc/wfs_server.html 
> <https://www.mapserver.org/ogc/wfs_server.html>.
> So I am a bit confused : is there a way to stylize a WFS layer or I 
> misunderstand the doc ?
> Thanks
> 
> -- 
> /----------/
> /Mathias Cunault/
> /référent SIG / Admin Caviar
> ///Inrap Tours - /148 av. Maginot
> 37000 TOURS
> 06 32 05 98 96
> _mathias.cunault at inrap.fr <mailto:mathias.cunault at inrap.fr>_/
> www.inrap.fr <http://www.inrap.fr>
> abonnez-vous à la lettre d'information de l'Inrap : 
> http://www.inrap.fr/newsletter.php <http://www.inrap.fr/newsletter.php>
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 




More information about the MapServer-users mailing list