Ah, it appears you answered both my current and next questions, Dane. (I was wondering why textsym.dy = VALUE wasn't doing anything.) u da man!
Thanks! Eric ________________________________ From: Dane Springmeyer <[email protected]> To: Eric France <[email protected]> Cc: [email protected] Sent: Tue, January 26, 2010 5:11:33 PM Subject: Re: [Mapnik-users] Slashes in TextSymbolizer Text? Try setting: map.buffer_size = 256 # some number greater that at half your tile size usually helps also potentially could help in general to displace the text labels away from the points: dx = 0 dy = 5 textsym.displacment(dx,dy) On Jan 26, 2010, at 2:01 PM, Eric France wrote: I'm trying that, but it doesn't seem to change the rendering. > >I'm doing this in Python. Here is a code snippet: > > textsym = mapnik.TextSymbolizer( > 'ID', > 'DejaVu Sans Book', > 10, > mapnik.Color('#000000') > ) > textsym.halo_fill = mapnik.Color('#FFFFFF') > textsym.halo_radius = 1 > textsym.allow_overlap = True > textsym.avoid_edges = False > rule.symbols.append(textsym) > > > Eric > > > > > ________________________________ From: David Leaver <[email protected]> >To: Eric France <[email protected]>; [email protected] >Sent: Tue, January 26, 2010 4:28:58 PM >Subject: RE: [Mapnik-users] Slashes in TextSymbolizer Text? > > >Disable avoid_edges: >http://trac.mapnik.org/wiki/TextSymbolizer > >Cheers, >Dave. >David Leaver >Senior Software Engineer >T: +64 7 8570805 | F: +64 7 8570801 | M: +64 21 876684 | E: [email protected] >SmarTrak Limited. Innovation Park Ruakura Road PO Box 7239 Hamilton 3247 NZ >SmarTrak - Always in front > >From: [email protected] >[mailto:[email protected]] On Behalf Of Eric France >Sent: Wednesday, 27 January 2010 10:28 a.m. >To: [email protected] >Subject: Re: [Mapnik-users] Slashes in TextSymbolizer Text? > >More info...it turns out to have nothing to do with the slashes. The text is >not being rendered because it overlaps the edge of the tile. Is there any way >to force partial rendering up to the tile edge? > >Eric > > > ________________________________ >From: Eric France <[email protected]> >To: [email protected] >Sent: Tue, January 26, 2010 3:47:47 PM >Subject: [Mapnik-users] Slashes in TextSymbolizer Text? >I'm using a TextSymbolizer to add labels to the icons I'm rendering with >PointSymbolizer. > >Each point in my shapefile has an attribute ("ID") and the TextSymbolizer is >configured to render this field. > >Most of the points have IDs of the format "XYZ", and these are rendered >correctly. However, a minority of points have IDs of the format "ABC/XYZ", >and for these, the text isn't rendered (the icon image is rendered alone). > >Are forward slashes not allowed in shapefile field values that are to be >rendered as text labels? > >Eric France_______________________________________________ >Mapnik-users mailing list >[email protected] >https://lists.berlios.de/mailman/listinfo/mapnik-users >
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

