1

can you tell me what is wrong with following SLD style? I've generated it by QGIS (2.18.3). In QGIS styles works fine, but when I upload it into Geoserver (2.10.1) and click valide I've had a lot of errors: enter image description here

Legend of SLD does not works too:

enter image description here

Here is my generated SLD: http://pastebin.com/GLp4xfx1

1 Answer 1

2

All of your filters are broken:

      <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
        <ogc:Literal>motorway</ogc:Literal>
      </ogc:Filter>

should probably be something like:

      <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
         <ocg:PropertyIsEqual>
            <ogc:PropertyName>type</ogc:PropertyName>
            <ogc:Literal>motorway</ogc:Literal>
         </ocg:PropertyIsEqual>
      </ogc:Filter>
1
  • thanks, I fix filters, but next I must fix conditions Commented Feb 2, 2017 at 15:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.