[mapserver-users] Re: symbol position moving when using angle

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Jun 21 09:54:47 EDT 2011


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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>




More information about the mapserver-users mailing list