<div dir="ltr">Hi Victor,<div>that would be a good usage of <ElseFilter/>, which is indeed designed</div><div>to match all features not matched by other rules in the same featuretypestyle</div><div><br></div><div>Cheers</div><div>Andrea</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 2, 2016 at 2:09 PM, Victor Olaya <span dir="ltr"><<a href="mailto:volayaf@gmail.com" target="_blank">volayaf@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
It seems that there is an issue with SLD exports. When exporting<br>
categorical symbology in which a default value is defined (for all<br>
values not matching any of the categories) a rule-based symbology is<br>
created. However, the default category has no ELSE in it (as it<br>
should), and the default symbol is applied to all elements, since it<br>
has no filter, and shadows the rest of the symbology.<br>
<br>
Morever, when a rule-based symbology is defined as rule-based, and the<br>
ELSE condition is added, it is not exported. The resulting SLD has<br>
something like this:<br>
<br>
<se:Rule><br>
         <se:Name></se:Name><br>
         <!--Parser Error: syntax error, unexpected ELSE - Expression<br>
was: ELSE--><br>
         <se:PolygonSymbolizer><br>
           <se:Fill><br>
             <se:SvgParameter name="fill">#9a5ceb </se:SvgParameter><br>
           </se:Fill><br>
           <se:Stroke><br>
             <se:SvgParameter name="stroke">#000001 </se:SvgParameter><br>
             <se:SvgParameter name="stroke-width">1</se:<wbr>SvgParameter><br>
             <se:SvgParameter name="stroke-linejoin">bevel</<wbr>se:SvgParameter><br>
           </se:Stroke><br>
         </se:PolygonSymbolizer><br>
       </se:Rule><br>
<br>
Is that a known limitation, or is it like that for some reason?<br>
<br>
For the record, the resulting SLD is correctly rendered in GeoServer,<br>
so maybe there is some issue in how QGIS handles those default<br>
categories. Opening the exported SLD and using it for a layer in QGIS<br>
causes all feature to be rendered with the default symbol.<br>
<br>
It might be related to this issue:<br>
<br>
<a href="http://hub.qgis.org/issues/15430" rel="noreferrer" target="_blank">http://hub.qgis.org/issues/<wbr>15430</a><br>
<br>
Thanks!<br>
______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div><div>==</div><div>GeoServer Professional Services from the experts! Visit</div><div><a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</div><div><span style="font-size:12.8000001907349px">==</span><br></div></div><div><br></div></div><div>Ing. Andrea Aime <br></div><div>@geowolf</div><div>Technical Lead</div><div><br></div><div><span style="font-size:12.8px">GeoSolutions S.A.S.</span><br style="font-size:12.8px"><span style="font-size:12.8px">Via di Montramito 3/A</span><br style="font-size:12.8px"><span style="font-size:12.8px">55054  Massarosa (LU)</span></div><div><span style="font-size:12.8px">phone: +39 0584 962313</span><br></div><div>fax: +39 0584 1660272</div><div>mob: +39  339 8844549</div><div><br></div><div><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></div><div><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></div><div><br></div><div><p><span lang="IT"><font size="1"><b>AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</b></font></span></p><p><span lang="IT"><font size="1">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</font></span></p><p><span lang="IT"><font size="1"> </font></span></p><p><font size="1">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</font></p></div><div><br></div><div>-------------------------------------------------------</div></div></div></div></div></div></div></div></div></div></div>
</div>