[mapserver-dev] Setting custom label position order...

Jeff McKenna jmckenna at gatewaygeomatics.com
Fri May 26 07:27:13 PDT 2017


No objections here, looks like a useful enhancement.  I assume that the 
same logic applies as before for lines and polys (for polygons only 
cc,uc,lc,cl,cr are accepted, and for lines only lc,uc are accepted).


-jeff



On 2017-05-25 6:09 PM, Lime, Steve D (MNIT) wrote:
> I was putzing around with a need to be able to define label position
> order within the mapfile. Mu use case was that I had markers that were
> oriented to line work and if possible I wanted to use CC and then the
> other automatic placement if collisions occurred. So I tweaked mapdraw.c
> – the label cache code to add support for syntax like so:
>
>
>
>   PROCESSING "LABEL_POSITIONS=CC,CL,CR,UC,UL,UR,LC,LL,LR"
>
>
>
> So in this case we start at CC and so on… Works well enough but probably
> needs additional parameter support to help push subsequent positions
> away from the centered marker since you’re pretty much guaranteed
> overlap with this scheme (I’m forcing in my case so messy is ok). It’s
> usable with any feature type and POSITION AUTO so folks may have other uses.
>
>
>
> Any objection to this addition? I’m not sure it’s RFC worthy…
>
>
>
> Steve
>
>
>




More information about the mapserver-dev mailing list