Hi Bart,
may be this is what you are looking for:
>From the map file documentation:

LABEL
...
POSITION [ul|uc|ur|cl|cc|cr|ll|lc|lr|auto]
    Position of the label relative to the labeling point (layers only). First 
letter is "Y" position, second letter is "X" position. "Auto" tells MapServer 
to calculate a label position that will not interfere with other labels. With 
points, MapServer selects from the 8 outer positions (i.e. excluding cc). With 
polygons, MapServer selects from cc (added in MapServer 5.4), uc, lc, cl and cr 
as possible positions. With lines, it only uses lc or uc, until it finds a 
position that doesn't collide with labels that have already been drawn. If all 
positions cause a conflict, then the label is not drawn (Unless the label's 
FORCE a parameter is set to "true"). "Auto" placement is only available with 
cached labels.

Regards,
Andreas

-----Ursprüngliche Nachricht-----
Von: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bart van den 
Eijnden (OSGIS)
Gesendet: Dienstag, 21. Juni 2011 15:55
An: Robert Hollingsworth
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] Re: symbol position moving when using angle

Hi Robert,

thanks for your answer, indeed that must be the explanation.

However, the ESRI software (ArcMap in this case) is doing what we expect
with the same true type font.

Best regards,
Bart

> looks to me like the 'base point' around which the symbol is defined in
> terms
> of x-y position, and therefore around which the thing will rotate -- is to
> the lower-left of the visible exclamation mark:
>
>        #
>        #
>        #
>
>        #
> x  << rotates around this
>
> while you really want something like:
>
>        #
>        #
>        #   << rotates around this point
>
>        #
>
> I'm guessing this is the normal case for most ttf's?  Can you find or
> create a ttf char that is defined like the second case?  Otherwise
> probably need to use a bitmap or just block out what you need with
> mapserver vector symbology
>
> Robert
> ======================================================
> original msg
> ======================================================
> Hi list,
>
> hopefully someone can explain the following issue to me.
>
> I am using a vector symbol (ttf), and when using no angle, it is
> positioned correctly.
>
> However, when I use ANGLE on the STYLE (using an attribute in the
> dataset), things get weird and the symbol position changes.
>
> Image brous4.png (no rotation in Mapserver, red exclamation marks are
> Mapserver, black exclamation marks are ArcMap, blue dot is the same
> Mapserver layer using a circle symbol to display the location):
>
> http://www.osgis.nl/download/mapserver/brous4.png
>
> Image brous3.png, now we rotate the symbols in Mapserver, but their
> location is moving (a simple OFFSET does not seem to be a possible
> solution however):
>
> http://www.osgis.nl/download/mapserver/brous3.png
>
> TIA for any guidance.
>
> Best regards,
> Bart
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to