diff --git a/bindings/python/mapnik_geometry.cpp b/bindings/python/mapnik_geometry.cpp index e77bd85a6..8d03483f5 100644 --- a/bindings/python/mapnik_geometry.cpp +++ b/bindings/python/mapnik_geometry.cpp @@ -272,6 +272,7 @@ void export_geometry() using namespace boost::python; implicitly_convertible(); + implicitly_convertible(); enum_("GeometryType") .value("Point",mapnik::new_geometry::geometry_types::Point) @@ -290,6 +291,7 @@ void export_geometry() using mapnik::new_geometry::geometry; using mapnik::new_geometry::point; + using mapnik::new_geometry::line_string; class_("Point", init((arg("x"), arg("y")), "Constructs a new Point object\n")) @@ -298,6 +300,12 @@ void export_geometry() .def("to_geojson",&to_geojson_impl) ; + class_("LineString", init<>( + "Constructs a new LineString object\n")) + .def("add_coord", &line_string::add_coord, "Adds coord") + .def("to_geojson",&to_geojson_impl) + ; + class_, boost::noncopyable>("Geometry",no_init) .def("envelope",&geometry_envelope_impl) .def("from_geojson", from_geojson_impl)