[mapserver-dev] GEOMTRANSFORM labelpnt location
Brent Fraser
bfraser at geoanalytic.com
Thu May 26 15:06:09 EDT 2011
Christy,
It's the blue dot location I have a problem with. From the doc, I
expected it to be at the same location as the green cross and yellow
circle. It's not all that serious, but I'm putting together a plan for
advanced polygon labeling using GEOMTRANSFORM and I wanted to make sure
I understood the existing functionality.
Best Regards,
Brent Fraser
On 5/26/2011 12:27 PM, Christy Nieman wrote:
> 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
>
>
> _______________________________________________
> 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/76320f09/attachment.html
More information about the mapserver-dev
mailing list