[Mapserver-users] SLD Problems

Yewondwossen Assefa assefa at dmsolutions.ca
Fri Mar 5 07:16:00 PST 2004


There is definitly nothing wrong with the your SLD document as it seems 
to work with tests data that I have here. I can not see anything wrong 
either in your map. Are you using a recent mapserver exe ? There is one 
dating froma couple of days on the maptools.org (take the developpment 
version) 
:http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html.

  If you still hav problems, tou can send me directly your map file and 
your data and I can setup a test here and see what might be wrong.

Later,

Stefan Schwarzer wrote:
> Hi there,
> 
> I am trying to change the layer properties via SLD. Although I think I 
> setup everything correctly, it just doesn't want to work. Could anyone 
> perhaps give me a hint on what I do wrong? See below the URL, the SLD 
> and the MAP file. The map displays, but not with the desired changes in 
> fill and stroke.
> 
> Thanks for any help,
> 
> Stefan
> 
> 
> http://localhost/cgi-bin/mapserv_41.exe?SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&map=E:/inetpub/wwwroot/wms_maps/wms.map&layers=boundaries&SLD=http//localhost/wms_maps/sld.xml 
> <http://localhost/cgi-bin/mapserv_41.exe?SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&map=E:/inetpub/wwwroot/wms_maps/wms.map&layers=boundaries&SLD=http//localhost/wms_maps/sld.xml>
> 
> 
> 
> <StyledLayerDescriptor version="1.0.0">
>         <NamedLayer>
>                 <Name>boundaries</Name>
>                 <UserStyle>
>                         <Title>xxx</Title>
>                         <FeatureTypeStyle>
>                                 <Rule>
>                                         <PolygonSymbolizer>
>                                                 <Fill>
>                                                         <CssParameter 
> name="fill">#0000ff</CssParameter>
>                                                 </Fill>
>                                                 <Stroke>
>                                                         <CssParameter 
> name="stroke">#ff0000</CssParameter>
>                                                 </Stroke>
>                                         </PolygonSymbolizer>
>                                 </Rule>
>                         </FeatureTypeStyle>
>                 </UserStyle>
>         </NamedLayer>
> </StyledLayerDescriptor>
> 
> 
> 
> #
> # Start of map file
> #
> 
> NAME boundaries
>         STATUS ON
>         SIZE 600 300
>         EXTENT -180 -90 180 90
>         UNITS DD
>         SHAPEPATH "data"
>         IMAGETYPE PNG
>         FONTSET etc/fonts.txt
> 
> 
> 
>         # Projection definition ---------------------
> 
>         PROJECTION
>                 "init=epsg:4326"
>                 proj=latlong
>                 ellps=WGS84
>         END
>         
>         # End Projection definition ---------------------
>         
> 
> 
>         # Web definition ---------------------
>         
>         WEB
>                 HEADER demo_header.html
>                 TEMPLATE demo.html
>                 FOOTER demo_footer.html
>                 
>                 IMAGEPATH '../temp/'
>                 IMAGEURL 'temp/'
> 
>                 METADATA
>                         "wms_title" "boundaries"
>                         "wms_onlineresource"  
> "http://my_server/cgi-bin/mapserv_41.exe?map=E:/inetpub/wwwroot/wms_maps/wms.map?"
>                 END
>         END
>         
>         # End Web definition ---------------------
> 
> 
>         
>         LAYER
>                 NAME boundaries
>                 TYPE POLYGON
>                 STATUS ON
>                 DATA boundaries
>                 DUMP TRUE
>                 CLASSITEM CNTRY_NAME
>                 CLASS   
>                         NAME 'boundaries'
>                         OUTLINECOLOR 0 0 0
>                         COLOR 100 100 100
>                         TEMPLATE 'dummy'
>                 END
>                 METADATA
>                         wms_title "boundaries"
>                 END
>         END
> 
> END # Map File
> 
> 
> 
>         _______________________________________
> 
>         *Stefan Schwarzer
> *        Consultant on GEO
> 
>         UNEP/DEWA/GRID-Geneva
>         Chemin des Anemones 11
>         CH - 1219 Chatelaine
>         Switzerland
> 
>         Tel: (+41) 22.917.83.49
>         Fax: (+41) 22.917.80.29
> 
>         Email: stefan.schwarzer at grid.unep.ch
>         Internet: http://geodata.grid.unep.ch/
>         _______________________________________
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------






More information about the MapServer-users mailing list