SLD

Gregorio Muñoz gregoavila at GMAIL.COM
Wed Feb 6 05:36:21 EST 2008


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080206/b6668dc3/attachment.html


More information about the mapserver-users mailing list