[ka-Map-users] precache2.php

ramesh karra karrarm at yahoo.com
Thu Jul 6 19:19:12 EDT 2006


With precache.php the tiles are getting generated with
correct image color. but it looks like the lines are
not anti-aliased!
With precache2.php, anti-aliasing seem to work fine
but the image color is black.

Without precache/precache2.php, creating the tiles
through the browser seem to create the correct image
with correct image color and anti-aliasing.

Any clues from this?

Thanks
Ramesh
--- Lorenzo Becchi <lorenzo at ominiverdi.com> wrote:

> This starts to be an issue that needs real
> debugging.
> I've never find this problem and maybe Tim Schaub,
> who wrote  
> precache2.php, has an opinion about it.
> 
> just to take time:
> is it the same with "prepache.php" instead that
> "precache2.php"?
> 
> ciao
> Lorenzo
> 
> 
> 
> On 06/lug/06, at 02:55, ramesh karra wrote:
> 
> > After re-installing kaMap using fgs installer,
> > precache2.php is working fine but the background
> color
> > of the map is displayed as black eventhough the
> > IMAGECOLOR is set to '235 235 235' in the map
> file.
> > Same map file would displays correctly if I do not
> use
> > precache2.php and use the web interface to create
> the
> > tiles correctly.
> >
> > Any ideas on why this is happening?
> >
> > Thanks a lot
> > Ramesh
> >
> > --- ramesh karra <karrarm at yahoo.com> wrote:
> >
> >> Thanks for the quick reply stephen!
> >>
> >> Where can I find the fix? I just recently
> downloaded
> >> the latest gd library 2.0.33 from libgd.org. Is
> the
> >> fix  not part of this?
> >>
> >> Thanks
> >> Ramesh
> >>
> >> --- Stephen Woodbridge <woodbri at swoodbridge.com>
> >> wrote:
> >>
> >>> Ramesh,
> >>>
> >>> This is probably because there is a bug in
> libgd2
> >>> for single pixel wide
> >>> antialiased lines the causes a segv. Steve Lime
> >>> posted a online fix to
> >>> libgd2 if you want to get the source, patch and
> >>> build it.
> >>>
> >>> The reason you built the first two scales it
> >> likely
> >>> because you did not
> >>> draw any antialiased 1 pixel lines.
> >>>
> >>> -Steve W.
> >>>
> >>> ramesh karra wrote:
> >>>> Thanks for the response Lorenzo.
> >>>>
> >>>> I have built the gd library and tried. This
> time
> >> I
> >>> did
> >>>> not get the same error but it coredumped while
> >>> trying
> >>>> to build the cache. It has successfully created
> >>> cache
> >>>> for first two scales and coredumped while
> trying
> >>> to
> >>>> create cache for the third scale.
> >>>>
> >>>> Here is the output:
> >>>>
> >>>>   Scale: 200000
> >>>>     Meta tiles: 2 x 2 = 4
> >>>>     Tiles: 2 x 2 x 5 x 5 = 100
> >>>>     Group: __base__
> >>>>   Scale: 100000
> >>>>     Meta tiles: 2 x 2 = 4
> >>>>     Tiles: 2 x 2 x 5 x 5 = 100
> >>>>     Group: __base__
> >>>>   Scale: 50000
> >>>>     Meta tiles: 3 x 2 = 6
> >>>>     Tiles: 3 x 2 x 5 x 5 = 150
> >>>>     Group: __base__
> >>>> Segmentation fault (core dumped)
> >>>>
> >>>>
> >>>> The stack trace of php using the gdb is:
> >>>>
> >>>> #0  0x002ff342 in gdImageSetAAPixelColor
> >>>> (im=0x85e21b0, x=1961, y=2080,
> >>>>     color=-200, t=255) at gd.c:3055
> >>>> #1  0x002ff4c4 in gdImageAALine (im=0x85e21b0,
> >>>> x1=1945, y1=2077, x2=1961,
> >>>>     y2=2079, col=13158600) at gd.c:3098
> >>>> #2  0x002fc186 in gdImageLine (im=0x85e21b0,
> >>> x1=1969,
> >>>> y1=2080, x2=1945,
> >>>>     y2=2077, color=-7) at gd.c:965
> >>>> #3  0x00abbdcc in msImageLoadGD () from
> >>>> /opt/php_mapscript.so
> >>>> #4  0x00ac0c9c in msDrawShadeSymbolGD () from
> >>>> /opt/php_mapscript.so
> >>>> #5  0x00ab9a30 in msDrawShadeSymbol () from
> >>>> /opt/php_mapscript.so
> >>>> #6  0x00ab86e1 in msDrawShape () from
> >>>> /opt/php_mapscript.so
> >>>> #7  0x00ab6cbe in msDrawVectorLayer () from
> >>>> /opt/php_mapscript.so
> >>>> #8  0x00ab67fe in msDrawLayer () from
> >>>> /opt/php_mapscript.so
> >>>> #9  0x00ab5d8b in msDrawMap () from
> >>>> /opt/php_mapscript.so #10 0x00a7d8fb in
> >>> mapObj_draw ()
> >>>> from /opt/php_mapscript.so
> >>>> #11 0x00a6d609 in php3_ms_map_draw () from
> >>>> /opt/php_mapscript.so
> >>>> #12 0x08130406 in execute (op_array=0x83422fc)
> >>>>     at /opt/php-4.4.2/Zend/zend_execute.c:1675
> >>>> #13 0x08123cb7 in zend_execute_scripts (type=8,
> >>>> retval=0x0, file_count=3)
> >>>>     at /opt/php-4.4.2/Zend/zend.c:934
> >>>> #14 0x08100b9f in php_execute_script
> >>>> (primary_file=0xbfff94b0)
> >>>>     at /opt/php-4.4.2/main/main.c:1753
> >>>> #15 0x08134370 in main (argc=6,
> argv=0xbfff9574)
> >>>>     at /opt/php-4.4.2/sapi/cli/php_cli.c:830
> >>>>
> >>>>
> >>>> Any ideas on what's the problem here?
> >>>>
> >>>> Thanks
> >>>> Ramesh
> >>>>
> >>>> --- Lorenzo Becchi <lorenzo at ominiverdi.com>
> >> wrote:
> >>>>
> >>>>> Hi Ramesh,
> >>>>> are you sure the path to DG lib is well
> written
> >>> in
> >>>>> include/config.php ?
> >>>>> is your ka-map working properly accessing from
> >>> the
> >>>>> web server?
> >>>>> if not, what's the output accessing your
> >> init.php
> >>>>> from the web?
> >>>>> and which one with tile.php?
> >>>>>
> >>>>> this are important points.
> >>>>>
> >>>>> ciao
> >>>>> Lorenzo
> >>>>>
> _______________________________________________
> >>>>> ka-Map-users mailing list
> >>>>> ka-Map-users at lists.maptools.org
> >>>>>
> >>>>
> >>>
> >>
> >
>
http://lists.maptools.org/mailman/listinfo/ka-map-users
> >>>>
> >>>>
> >>>>
> >>
> __________________________________________________
> >>>> Do You Yahoo!?
> >>>> Tired of spam?  Yahoo! Mail has the best spam
> >>> protection around
> >>>> http://mail.yahoo.com
> >>>> _______________________________________________
> >>>> ka-Map-users mailing list
> >>>> ka-Map-users at lists.maptools.org
> >>>>
> >>>
> >>
> >
>
http://lists.maptools.org/mailman/listinfo/ka-map-users
> >>>>
> >>>
> >>>
> >>
> >>
> >>
> __________________________________________________
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the ka-Map-users mailing list