Hi Andrea,
Thanks for the explanation, it's interesting stuff and does make sense
about the bounding boxes; approximations are almost always faster after all.
For now I'll just stick with using SLD 1.0 for the styles where I require
prioritisation. There aren't many.
One little known thing is that the default priority is 1000, so you have to
> go above it.
I did pick that up (why I'm using 2000 and 10,000) - it's neatly documented
though I guess not everyone reads them. ;-)
Thanks again,
Jonathan
On 17 July 2014 05:34, Andrea Aime <[email protected]> wrote:
> On Mon, Jul 14, 2014 at 5:03 PM, Jonathan Moules <
> [email protected]> wrote:
>
>> But throw in the other text layer:
>>
>> http://maps.warwickshire.gov.uk/gs/wms?LAYERS=OS_VML_ROADCENTRELINE,
>> *OS_MM_CARTOGRAPHIC_TEXT*
>> &STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A27700&BBOX=428428.71093752,264954.34570313,428618.8964844,265128.17382813&WIDTH=779&HEIGHT=712
>>
>> Of course, the weird thing again is as you can see, there's plenty of
>> space for the label to be placed down the middle of the street (which is
>> where it's placed much of the time):
>> [image: Inline images 1]
>>
>>
> Ah, there is plenty of space yes, but the labelling engine has a space
> reservation system that is pretty simple,
> it uses the axis aligned bounding box of the label to reserve and check
> so... a diagonal label takes
> a _lot_ of extra space
>
> This is done for performance reasons, as checking intersections between
> randomly rotated bounding
> boxes (and for curved labels, funny curved worms) would be much more
> intensive.
>
> I had some thoughts about switching from rectangle based to "raster"
> based, to account more or less
> for the actual space used by the labels, but the funding to do this kind
> of switch never materialized
>
> Cheers
> Andrea
>
>
>> Is it still worth opening a JIRA or is this just some bad-luck with
>> centroids and placement of text in relation to other text? (the other text
>> only has "conflictResolution = true" as its vendorParameter).
>>
>> Assuming my understanding of layer render ordering is valid, the road
>> text is rendered first, though I seem to remember labelling is something of
>> a special case.
>>
>
> Yes, all labels are rendered at the end, so if you assign a high priority
> to some labels, they should be rendered
> before the others regardless of the layer order.
> One little known thing is that the default priority is 1000, so you have
> to go above it. Don't know why 1000 was chosen,
> that was done by, I believe, David Blasby, many many years ago
>
> Cheers
> Andrea
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/NWWaa2 for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
--
This transmission is intended for the named addressee(s) only and may
contain confidential, sensitive or personal information and should be
handled accordingly. Unless you are the named addressee (or authorised to
receive it for the addressee) you may not copy or use it, or disclose it to
anyone else. If you have received this transmission in error please notify
the sender immediately. All email traffic sent to or from us, including
without limitation all GCSX traffic, may be subject to recording and/or
monitoring in accordance with relevant legislation.
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users