On Sun, Apr 6, 2008 at 6:36 PM, Martijn van Oosterhout
<[EMAIL PROTECTED]> wrote:
>  I've just upgraded the NL tileserver to a newer version of mapnik and
>  it seems to get itself into infinite loops.

Ok, I have a little more info... It is getting stuck at
agg/include/agg_path_length.h:36. This line:

        unsigned cmd;
        vs.rewind(path_id);
***     while(!is_stop(cmd = vs.vertex(&x2, &y2)))
        {
            if(is_vertex(cmd))

Returns the same coordinates over and over. vs is defined as:
(mapnik::coord_transform2<mapnik::CoordTransform,mapnik::geometry<mapnik::vertex<double,
2> > > &) @0xbfb21d58: {t_ = @0xbfb222b0,
  geom_ = @0x9d98328, prj_trans_ = @0xbfb22148}

Note that it's a *vertex* that it's trying to calculate the length of.
So the bug appears to be in include/mapnik/geometry.hpp:125

         unsigned vertex(double* x, double* y) const
         {
            *x = pt_.x;
            *y = pt_.y;
            return SEG_LINETO;  <-- This should be zero to indicate end-of-shape
         }

I'm going to try compiling this and see if it helps...

Have a nice day,
-- 
Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to