Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

So i am trying to make a typographic map using mapnik. I want the street names along a particular street not to overlap, but I want an intersection between two streets to over lap. Currentlyenter image description here some streets don't have repeating labels. see attached image for whats happening. How do I accomplish this?

labelStyle = mapnik.Style()
text = mapnik.TextSymbolizer(mapnik.Expression("[FULL_NAME]"), "DejaVu Sans Book", 2,     mapnik.Color("#171717"))
text.label_placement = mapnik.label_placement.line
text.label_spacing = 2
text.force_odd_labels = True
text.min_distance = 0
#text.max_distance = len((mapnik.Expression("[FULL_NAME]"))
text.character_spacing = 1
text.minimum_path_length = 0
text.label_position_tolerance = 100
text.allow_overlap = 1
text.avoid_edges = 0
r.symbols.append(text)
#labelStyle.rules.append(r)
s.rules.append(r)
m.append_style('Text',s)
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.