Currently inheritance of rules is handled using copy constructors:
mapnik::rule rule(parent_rule);
this is problematic for shared_ptr attributes like placement_options_ in text_symbolizer as all the subrules end up sharing the same shared_ptr. Not sure what the best option would be, my thinking is to come up with some way to copy these pointers with some switch in the copy constructor.
interesting problem. we can change/override the copy constructor in mapnik if needed - can you look for places in the mapnik code that might break if that were done?
Currently inheritance of rules is handled using copy constructors:
this is problematic for shared_ptr attributes like
placement_options_
in text_symbolizer as all the subrules end up sharing the same shared_ptr. Not sure what the best option would be, my thinking is to come up with some way to copy these pointers with some switch in the copy constructor.Thoughts @springmeyer?