I have a point feature (which I draw as a symbol) I am trying to label 
and isn't working (C++).  I modified my data so this symbol is the only 
thing being drawn.

I have two different styles setup.  The rule to draw the symbol is:
   <Rule>
     <Filter>[mapnik:geometry] = '1' and [point_symbol] = 
'cemetery'</Filter>
     <PointSymbolizer file="syms/cemetery.png" type="png" width="20" 
height="20" allow_overlap="true"/>
   </Rule>

which is being drawn.  I have a separate rule for the text (I had this 
inside the above rule but it didn't make a difference)
   <Rule>
     <Filter>[mapnik:geometry] = '1' and [point_symbol] = 
'cemetery'</Filter>
     <TextSymbolizer name="name" face_name="DejaVu Sans Bold" size="8" 
fill="green" dy="-25" halo_radius="1" wrap_width="0"/>
   </Rule>

Looking in the mapnik source, adding in my own debug, I see in 
src/agg_renderer.cpp::process(text_symbolizer ...) that the code is 
getting down into the POINT_PLACEMENT block and is calling 
finder.find_point_placement().  But the loop just below (for (unsigned 
int ii = 0; ii < text_placement.placements.size(); ++ii)) is never 
executing.

I seriously doubt there is a problem in the mapnik library, so I assume 
I am doing something wrong.  Any ideas?  Or do I need to dive into the 
find_point_placement() method?

-- 
Brian Peschel


_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to