line, cartoline antialiasing

Volkan Ulukut vulukut at TESCILTURK.COM
Thu Aug 17 01:40:38 PDT 2006


My gd.c doesn't have that function or I'm editing wrong gd.c.. Is it
possible that I'm using an older version? Phpinfo shows gd version as
bundled (2.0.28 compatible)

-----Original Message-----
From: Thomas Hammerlund [mailto:tom at maplink.jp] 
Sent: Thursday, August 17, 2006 11:16 AM
To: Volkan Ulukut
Subject: Re: [UMN_MAPSERVER-USERS] line, cartoline antialiasing

How about this?

*** gd.c.orig   Wed Jun 14 10:06:22 2006
--- gd.c        Mon Jun 12 12:05:28 2006
***************
*** 3032,3037 ****
--- 3032,3040 ----
  static void gdImageSetAAPixelColor(gdImagePtr im, int x, int y, int
color, int t)
  {
        int dr,dg,db,p,r,g,b;
+       if(x<0||y<0||x>=im->sx||y>=im->sy) {
+               return;
+       }
        p = gdImageGetPixel(im,x,y);
          /* TBB: we have to implement the dont_blend stuff to provide
            the full feature set of the old implementation */




----- Original Message ----- 
From: "Volkan Ulukut" <vulukut at tescilturk.com>
To: "'Thomas Hammerlund'" <tom at maplink.jp>
Cc: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Thursday, August 17, 2006 5:14 PM
Subject: RE: [UMN_MAPSERVER-USERS] line, cartoline antialiasing


>
> I was unable to find the line specified for the patch in gd.c. This patch
> seems to be for buffer overflow which causes seg. Fault. I'm not having 
> any
> problems with errors. Thanks anyway.
>
> -----Original Message-----
> From: Thomas Hammerlund [mailto:tom at maplink.jp]
> Sent: Thursday, August 17, 2006 10:40 AM
> To: Volkan Ulukut
> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] line, cartoline antialiasing
>
> I'm by no means a programmer, but someone pointed me to this patch a few
> months ago.
>
> http://lists.maptools.org/pipermail/ka-map-users/2006-March/001069.html
>
> Take a look at it.
>
> HTH,
> Tom
>
>
> ----- Original Message ----- 
> From: "Volkan Ulukut" <vulukut at tescilturk.com>
> To: "'Thomas Hammerlund'" <tom at maplink.jp>
> Sent: Thursday, August 17, 2006 4:39 PM
> Subject: RE: [UMN_MAPSERVER-USERS] line, cartoline antialiasing
>
>
>> Hi Thomas,
>> I'm using;
>> Kernel: 2.6.9-39.Elsmp
>> RedHat Enterprise 4
>> Mapserver version 4.8.3
>> -----Original Message-----
>> From: Thomas Hammerlund [mailto:tom at maplink.jp]
>> Sent: Thursday, August 17, 2006 10:28 AM
>> To: Volkan Ulukut
>> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
>> Subject: Re: [UMN_MAPSERVER-USERS] line, cartoline antialiasing
>>
>> Hi Volkan,
>>
>> What kind of an OS are you using?  Certain types of Linux require a 
>> patch.
>>
>> Tom
>>
>>
>> ----- Original Message ----- 
>> From: "Volkan Ulukut" <vulukut at TESCILTURK.COM>
>> To: <MAPSERVER-USERS at LISTS.UMN.EDU>
>> Sent: Thursday, August 17, 2006 3:59 PM
>> Subject: [UMN_MAPSERVER-USERS] line, cartoline antialiasing
>>
>>
>>> Hi List,
>>> I've read about the antialiasing feature for lines but can't seem to 
>>> work
>>> it
>>> on my mapserver. When I add "antialiasing true" parameter on the style 
>>> of
>>> the class of line layer nothing changes it's still having bad sight as
>>> seen
>>> on the attachment
>>> Here is the relevant part of the map file. I've tested with cartoline
>>> symbol
>>> and plain line without any symbol, same result
>>>
>>> IMAGETYPE png
>>> SYMBOL
>>>  NAME "cartoline"
>>>  TYPE cartoline
>>>  FILLED TRUE
>>>  LINECAP round #[butt|round|square|triangle]
>>>  LINEJOIN round #[round|miter|bevel]
>>>  LINEJOINMAXSIZE 3
>>> END
>>> LAYER
>>>    NAME "Antalya"
>>>    STATUS ON
>>>    TYPE LINE
>>>    CONNECTIONTYPE OGR
>>>    CONNECTION "antalya.ovf"
>>>    LABELITEM "adi"
>>>    GROUP "gantalya"
>>>    DATA "antalya"
>>>   LABELMAXSCALE 15000
>>>    MINSCALE 500
>>>  MAXSCALE 25000
>>>   METADATA
>>>     "queryable" "true"
>>>     "searchfield" "adi"
>>>   END
>>>     CLASS
>>>   STYLE
>>>        #SYMBOL 'cartoline'
>>>        COLOR 120 120 120
>>>        OUTLINECOLOR 254 254 254
>>>        WIDTH 7
>>>        MINSIZE 1
>>>        MAXSIZE 100
>>>   ANTIALIAS TRUE
>>>        END
>>>     LABEL
>>>        TYPE TRUETYPE
>>>        FONT "fritqat"
>>>        SIZE 7
>>>        MINSIZE 4
>>>        MAXSIZE 256
>>>        POSITION AUTO
>>>        OFFSET 0 0
>>>        ANGLE AUTO
>>>        BUFFER 0
>>>        MINDISTANCE -1
>>>        MINFEATURESIZE -1
>>>        COLOR 0 0 0
>>>        OUTLINECOLOR 254 254 254
>>>        ANTIALIAS TRUE
>>>        PARTIALS FALSE
>>>        FORCE FALSE
>>>   ENCODING "ISO-8859-9"
>>>      END
>>>   END
>>> END
>>>
>>
>>
>>
>>
>
>
>
> 



More information about the MapServer-users mailing list