<s> import mapnik <EOL> m = mapnik . Map ( <NUM_LIT:0> , <NUM_LIT:0> ) <EOL> water_rule = mapnik . Rule ( ) <EOL> water_rule . filter = mapnik . Expression ( <EOL> "<STR_LIT>" ) <EOL> water_rule . symbols . append ( <EOL> mapnik . PolygonSymbolizer ( mapnik . Color ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) ) <EOL> marsh_rule = mapnik . Rule ( ) <EOL> marsh_rule . filter = mapnik . Expression ( "<STR_LIT>" ) <EOL> marsh_color = mapnik . Color ( '<STR_LIT>' ) <EOL> marsh_rule . symbols . append ( mapnik . PolygonSymbolizer ( marsh_color ) ) <EOL> marsh_rule . symbols . append ( mapnik . LineSymbolizer ( marsh_color , <NUM_LIT:2> ) ) <EOL> atlas_style = mapnik . Style ( ) <EOL> atlas_style . rules . append ( water_rule ) <EOL> atlas_style . rules . append ( marsh_rule ) <EOL> m . append_style ( '<STR_LIT>' , atlas_style ) <EOL> lyr = mapnik . Layer ( '<STR_LIT>' , <EOL> "<STR_LIT>" ) <EOL> lyr . datasource = mapnik . Shapefile ( file = r'<STR_LIT>' ) <EOL> lyr . styles . append ( '<STR_LIT>' ) <EOL> m . layers . append ( lyr ) <EOL> mapnik . save_map ( m , r'<STR_LIT>' ) </s>
