[mapserver-dev] GEOMTRANSFORM labelpnt location

Havard Tveite havard.tveite at umb.no
Fri May 27 05:33:12 EDT 2011


Brent,

This is a bug.  The question is if it is only documentation.
I suggest you file a ticket.

The labelpolygon seems to be a bit shifted, also a bug?

Håvard

On 5/26/2011 7: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
>

-- 
Håvard Tveite
Department of Mathematical Sciences and Technology, UMB
Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/


More information about the mapserver-dev mailing list