If that’s the case, raising its Priority would solve that problem, just set a value
higher than 1000 (that being the default, yes, I know, it’s a weird default value).
Of course you’d lose other labels.
Another option would be to give it a large maxDisplacement value to help it
locate a free spot that’s not in the center.
···
On Wed, May 10, 2017 at 9:19 AM, Rahkonen Jukka (MML) <jukka.rahkonen@anonymised.com> wrote:
Hi,
Do I undestand right that the desire is not necessarily to get multiple labels but one label at any scale, at any region of interest?
Polygons labels are placed dynamically so with basic WMS it should not be possible to zoom past the label. The label is set to partial polygons if there are place for them. You can test with demo layer “states” with QGIS or OpenJUMP and you should experience that you can’t zoom past labels. Quick test with browser:
http://localhost:8080/geoserver/wms?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1601&HEIGHT=839&LAYERS=topp%3Astates&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-115.408,34.685,-113.877,35.487&SRS=EPSG:4326&STYLES=
-Jukka Rahkonen-
Andrea Aime wrote:
Re: [Geoserver-users] Repeat Labels Inside of Polygons
Hi,
there is indeed no vendor option to get the behavior your want, normally
people complain about it and ask about getting rid of it, so no support
was developed to get it in untiled mode.
Anyways, patches welcomed, if you are interested I can point you at where
the action is (roughly, gt-render module down in Geotools)
Cheers
Andrea
–
On Wed, May 10, 2017 at 12:36 AM, FunkMonkey33 <aedwards@anonymised.com17…com> wrote:
When you zoom into a large polygon, let’s say a County, you often zoom past
the label, and then you don’t know what county you’re in.
LineSymbolizer allows you to repeat labels, but I haven’t found any way to
repeat them in a polygon. No combination of maxDisplacement or repeat in
the SLD is having the desired effect.
Extensive googling only came up with posts about labels repeating due to
being served as tiles, which is not the behavior I’m going for.
Thanks!
Aaron
–
View this message in context: http://osgeo-org.1560.x6.nabble.com/Repeat-Labels-Inside-of-Polygons-tp5319970.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Check out the vibrant tech community on one of the world’s most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Geoserver-users mailing list
Geoserver-users@anonymised.comrge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
==
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
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
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.
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.
==
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
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
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.
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.