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

Lime, Steve D (MNIT) steve.lime at state.mn.us
Thu May 25 14:09:50 PDT 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20170525/eef9f29f/attachment.html>


More information about the mapserver-dev mailing list