Re: [MapServer-users] option to use sld in mapfile to configure layer styling

2024-01-18 Thread Seth G via MapServer-users
Hi Paul,

I think all the code functions are in place to do the bulk of this work, and 
this would be a nice addition to MapServer. Sharing SLD between applications is 
a huge benefit. If it is possible to apply SLD from a URL it should also be 
possible to apply SLD from disk. 

I wouldn't be a huge fan of embedding SLD directly in a Mapfile (although the 
CONNECTION parameter can accept large chunks of OGRVRTDataSource XML as long as 
quotes are escaped). 

Seth

--
web:https://geographika.net & https://mapserverstudio.net
twitter: @geographika

On Tue, Jan 16, 2024, at 6:11 PM, Paul via MapServer-users wrote:
> mapserver has capability to use SLD to style a layer, by appending sld to 
> request
> 
> unfortunately there is currently no option to use sld as part of mapfile to 
> style a layer
> 
> what do you think to add this as a new feature to next version?
> 
> syntax could be something like this:
> 
> LAYER
> 
>   STYLEITEM "sld://mysldfile.xml" # relative path
> 
>   CLASS
> 
>   END
> 
> END
> 
> Alternative to introduce it also as embedded SLD, but the mix of ms syntax 
> and xml is not very nice.
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[MapServer-users] option to use sld in mapfile to configure layer styling

2024-01-16 Thread Paul via MapServer-users
mapserver has capability to use SLD to style a layer, by appending sld to 
request
unfortunately there is currently no option to use sld as part of mapfile to 
style a layer
what do you think to add this as a new feature to next version?
syntax could be something like this:

LAYER

 STYLEITEM "sld://mysldfile.xml" # relative path

 CLASS

 END

END
Alternative to introduce it also as embedded SLD, but the mix of ms syntax and 
xml is not very nice.___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users