~ubuntu-branches/ubuntu/trusty/mapnik/trusty-proposed

« back to all changes in this revision

Viewing changes to bindings/python/mapnik_line_symbolizer.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2009-08-27 00:28:37 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090827002837-ztqzfg2rmclfh4i9
Tags: 0.6.1-0ubuntu1
* New upstream release.
* Change usr/lib to usr/lib* to enable build on 64 bits systems due to new
  configuration in SConstruct in :
  - debian/libmapnik-dev.install
  - debian/libmapnik0.6.install
  - debian/mapnik-plugin-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
using mapnik::stroke;
29
29
using mapnik::color;
30
30
 
 
31
struct line_symbolizer_pickle_suite : boost::python::pickle_suite
 
32
{
 
33
   static boost::python::tuple
 
34
   getinitargs(const line_symbolizer& l)
 
35
   {
 
36
      return boost::python::make_tuple(l.get_stroke());
 
37
   }
 
38
 
 
39
};
 
40
 
31
41
void export_line_symbolizer()
32
42
{
33
43
    using namespace boost::python;
36
46
                            init<>("Default LineSymbolizer - 1px solid black"))
37
47
        .def(init<stroke const&>("TODO"))
38
48
        .def(init<color const& ,float>())
 
49
        .def_pickle(line_symbolizer_pickle_suite())
39
50
        .add_property("stroke",make_function
40
51
                      (&line_symbolizer::get_stroke,
41
52
                       return_value_policy<copy_const_reference>()),