On Wed, 2008-09-17 at 15:34 -0400, Joseph Jira wrote:
> Sorry I did not include the errors that I have been getting, but here
> they are:
>
> >>> from mapnik import * >>> m= Map(800,600, "+proj=latlong +ellps=
> WGS84") >>> m.background = Color('white') >>> hydropoints_lyr=
> Layer('Hydrobrakes') >>> hydropoints_lyr.datasource =
> Shapefile(file='E:/Hydrobrakes/hydrobrakes', encoding='latin1') >>>
> hydropoints_style = Style() >>> hydropoints_rule_on = Rule() >>>
> hydropoints_rule_on.filter = Filter("[STATUS] = 'ACT'") >>>
> hydropoints_rule_on.symbols.append(PointSymbolizer(file
> ='E:/Hydrobrakes/hydrobrakes.png',type ='png',width= '2', height=
> '2'))
>
> Traceback (most recent call last): File "<pyshell#8>", line 1, in
> <module> hydropoints_rule_on.symbols.append(PointSymbolizer(file
> ='E:/Hydrobrakes/hydrobrakes.png',type ='png',width= '2', height=
> '2')) ArgumentError: Python argument types in
> PointSymbolizer.__init__(PointSymbolizer) did not match C++ signature:
> __init__(struct _object *, class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> >, class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> >, unsigned int, unsigned int)
> __init__(struct _object *) >>> Thanks again for the reply and the
> help.
A line like this is accepted without error:
hydropoints_rule_on.symbols.append(PointSymbolizer('E:/Hydrobrakes/hydrobrakes.png','png',2,2))
Jon
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users