[MAPSERVER-USERS] SLD
Pål Kristensen
pal.kristensen at statkart.no
Sun Feb 10 09:58:24 PST 2008
Hi!
The URL parameters is not correct, you should putt a &SLD= prior to the SLD
link, and also omit the &STYLES= when using SLD.
Regards
Pål Kristensen
Gregorio Muñoz wrote:
>
> Hello!
>
> I am working with SLD but can not make it work.
>
> This my url:
> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/urbanismo/maps/mymap.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Recintos&SRS=EPSG:23030&BBOX=235455.57724245856,4140286.563575713,240403.0990635437,4144581.824219214&WIDTH=500&HEIGHT=400&FORMAT=image/png&STYLES=default&TRANSPARENT=TRUE&http://127.0.0.1/ms4w/apps/urbanismo/sld/recintos.sld
>
> And this is my SLD document "recintos.sld":
>
> <?xml version="1.0" encoding="utf-8" standalone="no"?>
> <!-- $Id: recintos.sld,v 1.2 2006/10/05 19:20:48 tkralidi Exp $ -->
> <StyledLayerDescriptor version="1.0.0"
> xmlns="http://www.opengis.net/sld"
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.opengis.net/sld
> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
> <Name>urbanismo</Name>
> <Title>SLD for MapServer OGC Web Services Workshop</Title>
> <Abstract>This is an SLD to show how one can make a custom style
> without
> having to change the data style at the server-side</Abstract>
> <NamedLayer>
> <Name>Recintos</Name>
> <UserStyle>
> <Name>sld_01</Name>
> <Title>sld_01</Title>
> <IsDefault>1</IsDefault>
> <FeatureTypeStyle>
> <Rule>
> <LineSymbolizer>
> <Stroke>
> <CssParameter
> name="stroke">#FF00FF</CssParameter>
> <CssParameter
> name="stroke-width">3</CssParameter>
> </Stroke>
> </LineSymbolizer>
> </Rule>
> </FeatureTypeStyle>
> </UserStyle>
> </NamedLayer>
> </StyledLayerDescriptor>
>
> In my map file "mymap.map" there is a layer called "Recintos" (TYPE LINE).
>
>
> Does anyone know why it does not work?
>
> Any idea please?
>
> Thanks!
>
>
--
View this message in context: http://www.nabble.com/SLD-tp15309611p15399109.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list