[mapserver-dev] GEOMTRANSFORM labelpnt location

Christy Nieman cnieman at dmsolutions.ca
Thu May 26 14:27:05 EDT 2011


Hi Brent,

I think you're getting it at the centre because you have the label with 
POSITION CC (therefore always centred!)

Christy

On 05/26/2011 01:59 PM, Brent Fraser wrote:
> Should we change the documentation on STYLE -> GEOMTRANSFORM -> labelpnt:
>
>     * labelpnt generates a point with its center at the middle of the
>       bounding rectangle of the text.
>
>
> or is the position generated a bug (or am I using it incorrectly)?  
> Have a look at the blue dot in the attached image.
>
>
>     CLASS # Mountain
>       NAME 'Mountain'
>       EXPRESSION ([CONCISCODE]=280)
>       STYLE # ------ Green Cross ------
>         SYMBOL 'CROSS1'
>         SIZE 8
>         WIDTH 0.5
>         COLOR 0 255 0
>       END
>       STYLE # ------ Yellow Circle ------
>         GEOMTRANSFORM (labelpoint([shape]))
>         SYMBOL 'CIRCLE'
>         SIZE 5
>         OUTLINECOLOR 255 255 0
>       END
>       LABEL
>         STYLE # ------ Red Box ------
>             GEOMTRANSFORM labelpoly
>             OUTLINECOLOR 255 0 0
>         END #
>         STYLE #  ------ Blue Dot ------ position OK?
>             GEOMTRANSFORM labelpnt
>             SYMBOL 'CIRCLE'
>             SIZE 2
>             COLOR 0 0 255
>         END #
>         FONT "trebuc"
>         TYPE TRUETYPE
>         POSITION CC
>         ALIGN CENTER
>         WRAP ' '
>         SIZE 6
>         BUFFER 1
>         COLOR 0 0 0
>         ANGLE 0
>         PARTIALS FALSE
>         ANTIALIAS TRUE
>         #MINDISTANCE 250
>         #MINFEATURESIZE 10
>       END
>     END
>
>
> -- 
> Best Regards,
> Brent Fraser
>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/eb165db5/attachment.html


More information about the mapserver-dev mailing list