[mapserver-users] Text outline not working on line features

thomas bonfort thomas.bonfort at gmail.com
Thu Sep 22 11:17:43 EDT 2011


color yes, width not with GD.

--
thomas

On Thu, Sep 22, 2011 at 17:10, Bistrais, Bob <Bob.Bistrais at maine.gov> wrote:
> Yes, I think I see a white outline about 1 pixel.  Do I have any control over that at all? (width and/or color)
>
> -----Original Message-----
> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
> Sent: Wednesday, September 21, 2011 9:18 PM
> To: Bistrais, Bob
> Cc: Stephen Woodbridge; mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Text outline not working on line features
>
> The GD driver does not support the OUTLINEWIDTH keyword on labels, but
> you should see a hard 1-pixel outline be applied to the text.
>
> --
> thomas
>
> On Tue, Sep 20, 2011 at 22:56, Bistrais, Bob <Bob.Bistrais at maine.gov> wrote:
>> This is an older version of MapServer, MS4W 2.3.1, MapServer 5.2.1.
>>
>> Using a global file with the outputformat params:
>>
>>        OUTPUTFORMAT
>>                NAME 'agg/png'
>>                DRIVER AGG/PNG
>>                IMAGEMODE RGBA
>>                FORMATOPTION "TRANSPARENT=TRUE"
>>        END
>>
>>        OUTPUTFORMAT
>>                NAME 'print'
>>                DRIVER "GD/GIF"
>>                MIMETYPE "image/gif"
>>                IMAGEMODE PC256
>>                EXTENSION "gif"
>>                TRANSPARENT ON
>>        END
>>
>> -So we're going to gif on the printout.
>>
>> Not sure what you meant by label output.  But here's what I see- on the
>> web application, the labels are as they should be- they have the
>> background halo.  On the printed map, the label text itself appears, but
>> no background halo.
>>
>> Yes, I'm absolutely sure that's the code being used in the .map file.
>>
>>
>> -----Original Message-----
>> From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
>> Sent: Tuesday, September 20, 2011 1:49 PM
>> To: mapserver-users at lists.osgeo.org
>> Subject: Re: [mapserver-users] Text outline not working on line features
>>
>> Bob,
>>
>> Also, what are you getting for label output in you case? More info would
>>
>> help diagnose this.
>>
>> Thanks,
>> -Steve W
>>
>> On 9/20/2011 1:47 PM, thomas bonfort wrote:
>>> what mapserver version, what outputformat?
>>> regardless, it should work with any version, are you sure that this is
>>> the actual mapfile snippet that is being used ?
>>>
>>> --
>>> thomas
>>>
>>> On Tue, Sep 20, 2011 at 18:45, Bistrais, Bob<Bob.Bistrais at maine.gov>
>> wrote:
>>>> I'm trying to draw and label road features from a shapefile.  I'd
>> like to
>>>> include an outline of the road name text as a halo.  This works fine
>> on
>>>> polygon and point features, but is not working for me with the line
>>>> features.
>>>>
>>>>
>>>>
>>>> Here is the code block:
>>>>
>>>>
>>>>
>>>>                  LABEL
>>>>
>>>>                    ANGLE auto
>>>>
>>>>                    PARTIALS false
>>>>
>>>>                    FORCE false
>>>>
>>>>                    MINDISTANCE 250
>>>>
>>>>                    POSITION uc
>>>>
>>>>                    COLOR 200 0 0
>>>>
>>>>                    OUTLINECOLOR 255 255 255
>>>>
>>>>                    OUTLINEWIDTH 5
>>>>
>>>>                    FONT "verdana"
>>>>
>>>>                    SIZE 12
>>>>
>>>>                    TYPE truetype
>>>>
>>>>                  END
>>>>
>>>>                  TEXT ([RDNAME])
>>>>
>>>> _______________________________________________
>>>> mapserver-users mailing list
>>>> mapserver-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> mapserver-users mailing list
>>>> mapserver-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>> _______________________________________________
>> 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