[mapserver-users] using a SLD for a non-WMS layer.
Martin Ouellet
geomartino at gmail.com
Fri Nov 12 12:51:50 PST 2010
Hi all,
I would like a confirmation to be sure that I understand the process:
Considering that I can't use a sld directly inside a layer definition (in my
case BDTQ_HYDRO_L_ARC), I have to define another WMS layer
(BDTQ_HYDRO_L_ARC_SLD in my example below) that will be redirected to the
BDTQ_HYDRO_L_ARC layer WITH the style definition file ("wms_sld_url") to
use for the rendering?
Currently, this process works very well but:
Q1: Is there a better way (or faster way for mapserver) for doing that
?(apply a sld to a non-WMS layer)?
Q2: What kind of degradation of performance can I expect with this cascading
workflow (2 time slower?)
regards MartinO
Example:
LAYER
NAME "BDTQ_HYDRO_L_ARC"
DATA "geom from bdtq_hydro_l_arc using srid=4269"
TYPE LINE
MAXSCALEDENOM 150000
MINSCALEDENOM 0
METADATA
"wms_name" "BDTQ_HYDRO_L_ARC"
"wms_title" "Hydrographie Linéaire"
"wms_keywordlist" "TODO"
"wms_abstract" "TODO"
END
PROJECTION
"init=epsg:4269"
END
CLASS
STYLE
COLOR 0 0 0
END
END
END
#-- Hydrographie WMS
LAYER
NAME "BDTQ_HYDRO_L_ARC_SLD"
TYPE RASTER
CONNECTION "http://<my server>/mapserv?map=bdtq"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:4269"
"wms_name" "BDTQ_HYDRO_L_ARC"
"wms_server_version" "1.1.1"
"wms_format" "png"
"wms_extent" "-80 45 -54 60"
"wms_sld_url" "http://<my server>/sld/bdtq_hydro_l_arc.sld"
END
END
regards
MartinO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101112/c63b0ab6/attachment.htm>
More information about the MapServer-users
mailing list