Hello again,
I have already a problem with the sld using in ArcServer. I made a php file which should make an sld. I have taken it to the mail. This file gets some attributes from the database and creates the filter and polygon symbolizers and so on. I have realised the same thing for the UMN Mapser ver, too and all works fine. If I copy the result of the sld-making file and save it in a xml file, it works too. But I don't get a result out of the program. The WMS I get like this: http://klarabella.hsw-intern.ch:8399/arcgis/services/GINES_BE/MapServer/WMSServer?LAYERS=0&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SLD=http://localhost/GINES_Daten_BE/Styling/mysld2.php?jahr=2004&indikator=10004&klassen=5&vis=1&EXCEPTIONS=application/vnd.ogc.se_inimage&FORMAT=image/jpeg&SRS=EPSG:21781&BBOX=555100,118904.25950196592,678450,255995.74049803408&WIDTH=763&HEIGHT=848 in the sld parameter works the file for the sld. I always get the error "parser failed". I don't know my mistake. Perhaps somebody can help me. Greetings Hanno Rahn ------------------------------------------ Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinformatik Grüental, Postfach CH-8820 Wädenswil Tel +41 (0)58 934 5592 Fax +41 (0)58 934 5580 hanno.r...@zhaw.ch
<?xml version="1.0" encoding="UTF-8"?> <sld:StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/ogc" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <sld:NamedLayer> <sld:Name>0</sld:Name> <sld:UserStyle> <sld:Title> Gemeinden_Bern </sld:Title> <sld:FeatureTypeStyle> <sld:Rule> <sld:Name>Gewaesser</sld:Name> <ogc:Filter> <ogc:PropertyIsBetween> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:LowerBoundary> <ogc:Literal>9000</ogc:Literal> </ogc:LowerBoundary> <ogc:UpperBoundary> <ogc:Literal>10000</ogc:Literal> </ogc:UpperBoundary> </ogc:PropertyIsBetween> </ogc:Filter> <sld:PolygonSymbolizer> <sld:Fill> <sld:CssParameter name="fill">#0066ff</sld:CssParameter> <sld:CssParameter name="fill-opacity">1.00</sld:CssParameter> </sld:Fill> <sld:Stroke> <sld:CssParameter name="stroke">#aa5500</sld:CssParameter> </sld:Stroke> </sld:PolygonSymbolizer> </sld:Rule> <sld:Rule> <sld:Name>0.0157 - 10.3968</sld:Name> <ogc:Filter> <ogc:OR> <ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal>301</ogc:Literal> </ogc:PropertyIsEqualTo> <ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal>302</ogc:Literal> </ogc:PropertyIsEqualTo> <ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal>303</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:OR> </ogc:Filter> <sld:PolygonSymbolizer> <sld:Fill> <sld:CssParameter name="fill">#d73027</sld:CssParameter> <sld:CssParameter name="fill-opacity">1.00</sld:CssParameter> </sld:Fill> <sld:Stroke> <sld:CssParameter name="stroke">#aa5500</sld:CssParameter> </sld:Stroke> </sld:PolygonSymbolizer> </sld:Rule> <sld:Rule> <sld:Name>10.3968 - 20.7779</sld:Name> <ogc:Filter> <ogc:OR> <ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal>353</ogc:Literal> </ogc:PropertyIsEqualTo> <ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal>356</ogc:Literal> </ogc:PropertyIsEqualTo><ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal>361</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:OR> </ogc:Filter> <sld:PolygonSymbolizer> <sld:Fill> <sld:CssParameter name="fill">#fdae61</sld:CssParameter> <sld:CssParameter name="fill-opacity">1.00</sld:CssParameter> </sld:Fill> <sld:Stroke> <sld:CssParameter name="stroke">#aa5500</sld:CssParameter> </sld:Stroke> </sld:PolygonSymbolizer> </sld:Rule> <sld:Rule> <sld:Name>20.7779 - 31.1589</sld:Name> <ogc:Filter> <ogc:OR> <ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal>351</ogc:Literal> </ogc:PropertyIsEqualTo> <ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal>362</ogc:Literal> </ogc:PropertyIsEqualTo> <ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal>363</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:OR> </ogc:Filter> <sld:PolygonSymbolizer> <sld:Fill> <sld:CssParameter name="fill">#ffffbf</sld:CssParameter> <sld:CssParameter name="fill-opacity">1.00</sld:CssParameter> </sld:Fill> <sld:Stroke> <sld:CssParameter name="stroke">#aa5500</sld:CssParameter> </sld:Stroke> </sld:PolygonSymbolizer> </sld:Rule> <sld:Rule> <sld:Name>31.1589 - 41.54</sld:Name> <ogc:Filter> <ogc:OR> <ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal></ogc:Literal> </ogc:PropertyIsEqualTo> <ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal></ogc:Literal> </ogc:PropertyIsEqualTo> <ogc:PropertyIsEqualTo> <ogc:PropertyName>bfs</ogc:PropertyName> <ogc:Literal></ogc:Literal> </ogc:PropertyIsEqualTo></ogc:OR> </ogc:Filter> <sld:PolygonSymbolizer> <sld:Fill> <sld:CssParameter name="fill">#a6d96a</sld:CssParameter> <sld:CssParameter name="fill-opacity">1.00</sld:CssParameter> </sld:Fill> <sld:Stroke> <sld:CssParameter name="stroke">#aa5500</sld:CssParameter> </sld:Stroke> </sld:PolygonSymbolizer> </sld:Rule> </sld:FeatureTypeStyle> </sld:UserStyle> </sld:NamedLayer> </sld:StyledLayerDescriptor>
<<attachment: mysld2.php>>
<<attachment: quantile.php>>
<<attachment: bfs.php>>
<<attachment: minMax.php>>
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users