Created
June 18, 2012 19:19
-
-
Save springmeyer/2950177 to your computer and use it in GitHub Desktop.
test mapnik dash-array parser in XML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mapnik | |
map_string = """ | |
<Map> | |
<Style name="test"> | |
<Rule> | |
<LineSymbolizer stroke-dasharray="22.5,0" /> | |
</Rule> | |
</Style> | |
</Map> | |
""" | |
m = mapnik.Map(256,256) | |
mapnik.load_map_from_string(m,map_string) | |
s = m.find_style('test') | |
s.rules[0].symbols[0].stroke.get_dashes() |
Author
springmeyer
commented
Jun 18, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment