Cases like that are often handled via a z-order field:

https://docs.geoserver.org/latest/en/user/styling/sld/extensions/z-order/index.html

Cheers
Andrea


On Mon, Mar 20, 2023 at 2:07 PM Ian Turton <ijtur...@gmail.com> wrote:

> Features are drawn in the order they are returned by the datastore, and
> then in the order of the rule that draws them.
>
> Ian
>
> On Mon, 20 Mar 2023 at 12:36, Mario Carrera <mcarr...@gvsig.com> wrote:
>
>>
>> Hello everyone!
>>
>> I have a problem with the order of features on a layer, where some of
>> them are not shown. In my case, some rectangles of the zebra crossing are
>> under the road, as you can see here:
>>
>>
>>
>> I have the symbology with different rules for the different type of
>> elements, for example:
>>
>>         <sld:Rule>
>>           <sld:Title>Road paint</sld:Title>
>>           <ogc:Filter>
>>             <ogc:PropertyIsEqualTo>
>>               <ogc:PropertyName>id_fenomen</ogc:PropertyName>
>>               <ogc:Literal>Road paint</ogc:Literal>
>>             </ogc:PropertyIsEqualTo>
>>           </ogc:Filter>
>>           <sld:PolygonSymbolizer>
>>             <sld:Fill>
>>               <sld:CssParameter name="fill">#ffffff</sld:CssParameter>
>>             </sld:Fill>
>>             <sld:Stroke>
>>               <sld:CssParameter name="stroke">#ffffff</sld:CssParameter>
>>               <sld:CssParameter name="stroke-width">1</sld:CssParameter>
>>               <sld:CssParameter
>> name="stroke-linejoin">bevel</sld:CssParameter>
>>             </sld:Stroke>
>>           </sld:PolygonSymbolizer>
>>         </sld:Rule>
>>
>> Is there any way to apply order of visualization for the different rules
>> (type of elements)? I have found only by "z" parameter, but it's not for my
>> case.
>>
>> Thank you very much.
>> Best regards,
>>  Mario Carrera
>>
>>
>> --
>>
>> *Mario Carrera*
>>
>> gvSIG Association / Asociación gvSIG
>>
>> http://www.gvsig.com
>>
>>
>> Antes de imprimir este e-mail piense bien si es necesario hacerlo.
>>
>> AVISO LEGAL: Este mensaje y sus archivos adjuntos van dirigidos
>> exclusivamente a su destinatario, pudiendo contener información
>> confidencial sometida a secreto profesional. No está permitida su
>> comunicación, reproducción o distribución sin la autorización expresa de la
>> Asociación gvSIG. Si usted no es el destinatario final, por favor elimínelo
>> e infórmenos por esta vía.
>>
>> PROTECCIÓN DE DATOS: De conformidad con lo dispuesto en las normativas
>> vigentes en protección de datos personales, el Reglamento (UE) 2016/679 de
>> 27 de abril de 2016 (GDPR) y la Ley Orgánica (ES) 15/1999 de 13 de
>> diciembre (LOPD), le informamos que los datos personales y dirección de
>> correo electrónico, recabados del propio interesado o de fuentes públicas,
>> serán tratados bajo la responsabilidad de la *Asociación gvSIG *para el
>> envío de comunicaciones sobre nuestros productos y servicios y se
>> conservarán mientras exista un interés mutuo para ello. Los datos no serán
>> comunicados a terceros, salvo obligación legal. Le informamos que puede
>> ejercer los derechos de acceso, rectificación, portabilidad y supresión de
>> sus datos y los de limitación y oposición a su tratamiento dirigiéndose
>> enviando un mensaje al correo electrónico a i...@gvsig.com. Si considera
>> que el tratamiento no se ajusta a la normativa vigente, podrá presentar una
>> reclamación ante la autoridad de control en www.agpd.es.
>>
>>
>> _______________________________________________
>> Geoserver-users mailing list
>>
>> Please make sure you read the following two resources before posting to
>> this list:
>> - Earning your support instead of buying it, but Ian Turton:
>> http://www.ianturton.com/talks/foss4g.html#/
>> - The GeoServer user list posting guidelines:
>> http://geoserver.org/comm/userlist-guidelines.html
>>
>> If you want to request a feature or an improvement, also see this:
>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>>
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
> --
> Ian Turton
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  339 8844549

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to