Skip to content

Commit

Permalink
update the demo/tests - refs #1460
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Sep 3, 2012
1 parent f29726e commit 28063e2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions demo/test/charplacement.py
Expand Up @@ -42,7 +42,7 @@
road_style.rules.append(road_rule);

#Road text
text_symbolizer = TextSymbolizer('NAME', 'DejaVu Sans Book', 20, Color('black'))
text_symbolizer = TextSymbolizer(Expression('[NAME]'), 'DejaVu Sans Book', 20, Color('black'))
text_symbolizer.label_placement=label_placement.LINE_PLACEMENT
text_symbolizer.minimum_distance = 0
#text_symbolizer.max_char_angle_delta = 40
Expand Down Expand Up @@ -77,6 +77,6 @@
render(m, im)

# Save image to file
save_to_file('output.png', 'png',im) # true-colour RGBA
im.save('output.png') # true-colour RGBA

print "Done\n"
4 changes: 2 additions & 2 deletions demo/test/displacement.py
Expand Up @@ -43,7 +43,7 @@
road_style.rules.append(road_rule);

#Road text
text_symbolizer = TextSymbolizer('NAME', 'DejaVu Sans Book', 10, Color('black'))
text_symbolizer = TextSymbolizer(Expression('[NAME]'), 'DejaVu Sans Book', 10, Color('black'))
text_symbolizer.label_placement=label_placement.LINE_PLACEMENT
text_symbolizer.minimum_distance = 0
#text_symbolizer.max_char_angle_delta = 40
Expand Down Expand Up @@ -78,6 +78,6 @@
render(m, im)

# Save image to file
save_to_file('output.png', 'png',im) # true-colour RGBA
im.save('output.png') # true-colour RGBA

print "Done\n"
4 changes: 2 additions & 2 deletions demo/test/overlap.py
Expand Up @@ -44,7 +44,7 @@
road_style.rules.append(road_rule);

#Road text
text_symbolizer = TextSymbolizer('NAME', 'DejaVu Sans Book', 10, Color('black'))
text_symbolizer = TextSymbolizer(Expression('[NAME]'), 'DejaVu Sans Book', 10, Color('black'))
text_symbolizer.label_placement=label_placement.LINE_PLACEMENT
text_symbolizer.minimum_distance = 0
#text_symbolizer.max_char_angle_delta = 40
Expand Down Expand Up @@ -79,6 +79,6 @@
render(m, im)

# Save image to file
save_to_file('output.png', 'png',im) # true-colour RGBA
im.save('output.png') # true-colour RGBA

print "Done\n"
4 changes: 2 additions & 2 deletions demo/test/textspacing.py
Expand Up @@ -43,7 +43,7 @@
road_style.rules.append(road_rule);

#Road text
text_symbolizer = TextSymbolizer('NAME', 'DejaVu Sans Book', 10, Color('black'))
text_symbolizer = TextSymbolizer(Expression('[NAME]'), 'DejaVu Sans Book', 10, Color('black'))
text_symbolizer.label_placement=label_placement.LINE_PLACEMENT
text_symbolizer.minimum_distance = 0
#text_symbolizer.max_char_angle_delta = 40
Expand Down Expand Up @@ -77,6 +77,6 @@
render(m, im)

# Save image to file
save_to_file('output.png', 'png',im) # true-colour RGBA
im.save('output.png') # true-colour RGBA

print "Done\n"

0 comments on commit 28063e2

Please sign in to comment.