Hi, Andrea. Thanks a lot for your response.
Could you please tell me where in the SLD file to put VendorOption tag? I’ve
tried in different places but I always get an error when validating SLD:
· line 42: cvc-complex-type.2.4.a: Se ha encontrado contenido no válido
a partir del elemento '{"http://www.opengis.net/sld":VendorOption}'. Se
esperaba uno de '{"http://www.opengis.net/sld":ContrastEnhancement,
"http://www.opengis.net/sld":ShadedRelief,
"http://www.opengis.net/sld":ImageOutline}'.
· line 65: cvc-complex-type.2.4.a: Se ha encontrado contenido no válido
a partir del elemento '{"http://www.opengis.net/sld":VendorOption}'. Se
esperaba uno de '{"http://www.opengis.net/sld":ContrastEnhancement,
"http://www.opengis.net/sld":ShadedRelief,
"http://www.opengis.net/sld":ImageOutline}'.
The attached file is the one I’ve modified without luck.
Thanks again.
[http://www.tragsa.es/SiteCollectionImages/Relaciones%20Institucionales%20(Prensa)/FIRMA%20OUTLOOK/2023tragsatec.png]
Briones Garcia, Pedro
JGAP Sist Inform Geográfica
S.Información Geográfica / G.Sist.Inf. Geografica
Grupo Tragsa - SEPI
Calle Julián Camarillo 6B - 28037 Madrid
Tel.: 913226489 - 88216 - Fax: 913226005
[email protected]<mailto:[email protected]>
www.tragsa.es <https://www.tragsa.es/>
AVISO LEGAL <https://www.tragsa.es/es/Paginas/aviso-legal-correo.aspx>
POLITICA DE PRIVACIDAD, de conformidad con el Reglamento UE 2016/679 y la Ley
Orgánica 3/2018
<https://www.tragsa.es/es/Paginas/politica-privacidad-correo.aspx>
De: Andrea Aime <[email protected]>
Enviado el: miércoles, 18 de octubre de 2023 14:47
Para: Briones Garcia, Pedro <[email protected]>
CC: [email protected]
Asunto: Re: [Geoserver-users] Group raster values in SLD
Hi,
I'm working on a new vendor option that will land soon on the GeoServer
developer series,
which will allow exactly that sort of duplicate removal.
In the meantime, you can probably fake it by having two rules, one intended for
rendering (using a vendor option named inclusion=mapOnly)
and a separate one only for the legend (inclusion)legendOnly). See more on this
topic here:
https://docs.geoserver.org/stable/en/user/styling/sld/extensions/rendering-selection.html<https://urldefense.com/v3/__https:/docs.geoserver.org/stable/en/user/styling/sld/extensions/rendering-selection.html__;!!BgLsOpJl!vq2yoRuklK8KK4UUkpU1KUIykxhWXAgU-U15p_glW-9D88d5TEDmGio2J83pOFYk4azTb7wp2Sj2RxreIefJU1pe0pk$>
Cheers
Andrea
On Wed, Oct 18, 2023 at 2:14 PM Briones Garcia, Pedro
<[email protected]<mailto:[email protected]>> wrote:
Hi all.
I have an SLD file (attached file file1.sld) for drawing an image mosaic layer.
There are nine raster pixel values that are represented with same symbol
(color="#288228"). The resulting legend is attached Leyend1.png file.
I would like to have only one category in the legend for all pixels with the
same symbol as attached file leyend2.png shows, so I need to group all pixels
values in one category.
Any Idea how to do it with SLD without editing the source images?
Thanks in advance
[http://www.tragsa.es/SiteCollectionImages/Relaciones%20Institucionales%20(Prensa)/FIRMA%20OUTLOOK/2023tragsatec.png]
Briones Garcia, Pedro
JGAP Sist Inform Geográfica
S.Información Geográfica / G.Sist.Inf. Geografica
Grupo Tragsa - SEPI
Calle Julián Camarillo 6B - 28037 Madrid
Tel.: 913226489 - 88216 - Fax: 913226005
[email protected]<mailto:[email protected]>
www.tragsa.es <https://www.tragsa.es/>
AVISO LEGAL <https://www.tragsa.es/es/Paginas/aviso-legal-correo.aspx>
POLITICA DE PRIVACIDAD, de conformidad con el Reglamento UE 2016/679 y la Ley
Orgánica 3/2018
<https://www.tragsa.es/es/Paginas/politica-privacidad-correo.aspx>
_______________________________________________
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#/<https://urldefense.com/v3/__http:/www.ianturton.com/talks/foss4g.html*/__;Iw!!BgLsOpJl!vq2yoRuklK8KK4UUkpU1KUIykxhWXAgU-U15p_glW-9D88d5TEDmGio2J83pOFYk4azTb7wp2Sj2RxreIefJSQsGUXk$>
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html<https://urldefense.com/v3/__http:/geoserver.org/comm/userlist-guidelines.html__;!!BgLsOpJl!vq2yoRuklK8KK4UUkpU1KUIykxhWXAgU-U15p_glW-9D88d5TEDmGio2J83pOFYk4azTb7wp2Sj2RxreIefJTtMb28Q$>
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<https://urldefense.com/v3/__https:/github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer__;!!BgLsOpJl!vq2yoRuklK8KK4UUkpU1KUIykxhWXAgU-U15p_glW-9D88d5TEDmGio2J83pOFYk4azTb7wp2Sj2RxreIefJUDJZr20$>
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users<https://urldefense.com/v3/__https:/lists.sourceforge.net/lists/listinfo/geoserver-users__;!!BgLsOpJl!vq2yoRuklK8KK4UUkpU1KUIykxhWXAgU-U15p_glW-9D88d5TEDmGio2J83pOFYk4azTb7wp2Sj2RxreIefJ1rhnFCs$>
--
Regards,
Andrea Aime
==
GeoServer Professional Services from the experts!
Visit
http://bit.ly/gs-services-us<https://urldefense.com/v3/__http:/bit.ly/gs-services-us__;!!BgLsOpJl!vq2yoRuklK8KK4UUkpU1KUIykxhWXAgU-U15p_glW-9D88d5TEDmGio2J83pOFYk4azTb7wp2Sj2RxreIefJbhnDNGs$>
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/<https://urldefense.com/v3/__https:/www.geosolutionsgroup.com/__;!!BgLsOpJl!vq2yoRuklK8KK4UUkpU1KUIykxhWXAgU-U15p_glW-9D88d5TEDmGio2J83pOFYk4azTb7wp2Sj2RxreIefJGs4APPU$>
http://twitter.com/geosolutions_it<https://urldefense.com/v3/__http:/twitter.com/geosolutions_it__;!!BgLsOpJl!vq2yoRuklK8KK4UUkpU1KUIykxhWXAgU-U15p_glW-9D88d5TEDmGio2J83pOFYk4azTb7wp2Sj2RxreIefJURkasSY$>
-------------------------------------------------------
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
file2.sld
Description: file2.sld
_______________________________________________ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
