Re: [Geoserver-users] Make hole in line to draw label
Le 14/11/2018 à 10:27, Andrea Aime a écrit : Labels are drawn last, on top of everything, so there is no possibility to composite them at the moment. That's another change that might work, but it plays badly with priority support and conflict resolution (both require labels to be accumulated and handled at the end), so it's not a trivial change to implement (and it's basically how "holes" in lines would have to be implemented anyways) OK, thanks for clarifying this. On this subject, allowing some textsymbolizers to be taken out of the priority/conflict resolution pipeline would also solve some other problems (drawing geometries on top of labels being the most obvious one). i.e. having something like an x-textasgeometry vendor option to take a particular feature out of the labels pipeline and simply be drawn with no conflict resolution just like any other feature. Anyway, thanks for all your answers ! Cheers -- Arnaud ___ 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
Re: [Geoserver-users] Make hole in line to draw label
On Wed, Nov 14, 2018 at 10:24 AM Arnaud L. wrote: > Yes I know, it's only an example I'm still fine tuning this particular > style (you can see a very readable black label in the bottom left of the > picture). > > What about compositing with labels ? How does one achieve this, when > labels are supposedly drawn last ? > Labels are drawn last, on top of everything, so there is no possibility to composite them at the moment. That's another change that might work, but it plays badly with priority support and conflict resolution (both require labels to be accumulated and handled at the end), so it's not a trivial change to implement (and it's basically how "holes" in lines would have to be implemented anyways) Cheers Andrea == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 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
Re: [Geoserver-users] Make hole in line to draw label
Le 14/11/2018 à 10:18, Andrea Aime a écrit : There is no facility to add gaps around labels, but if someone were to develop or sponsor it, it would be a welcomed addition. I'd be happy to help on this topic as well as the YSLD one (see, I got the message ;D), but unfortunately my Java knowledge is way too basic to even think about contributing. The halo is not working also because it has little contrast with the label itself, it's white vs light gray. If the label was darker, it would be readable no matter what the background is. To me the label is not that readable on the white background either. Yes I know, it's only an example I'm still fine tuning this particular style (you can see a very readable black label in the bottom left of the picture). What about compositing with labels ? How does one achieve this, when labels are supposedly drawn last ? Cheers -- Arnaud ___ 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
Re: [Geoserver-users] Make hole in line to draw label
On Wed, Nov 14, 2018 at 10:12 AM Arnaud L. wrote: > Hi list ! > > I'd like to label a line with a text in follow-line positionning. > My problem is that with this simple style the label is not very readable > because it is "stroked" by the line. So I'd like to make a hole (a gap), > in the line at the place where the label will be drawn. > There is no facility to add gaps around labels, but if someone were to develop or sponsor it, it would be a welcomed addition. > I tried with a halo but it does not work well in my case because I have > different background colors, and the halo has a predetermined color. The halo is not working also because it has little contrast with the label itself, it's white vs light gray. If the label was darker, it would be readable no matter what the background is. To me the label is not that readable on the white background either. Cheers Andrea == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 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
[Geoserver-users] Make hole in line to draw label
Hi list ! I'd like to label a line with a text in follow-line positionning. My problem is that with this simple style the label is not very readable because it is "stroked" by the line. So I'd like to make a hole (a gap), in the line at the place where the label will be drawn. I tried with a halo but it does not work well in my case because I have different background colors, and the halo has a predetermined color. So on white backgrounds a white halo works, but on blue background it does not. See here for a concrete example : https://i.imgur.com/39PQDX2.png Could anyone suggest me another way to achive this ? Thanks a lot Regards -- Arnaud ___ 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