Skip to content

Commit 0c8f07c

Browse files
committed
Revert "avoid duplicate conversions registrations"
This reverts commit 6256787.
1 parent 1c4a51d commit 0c8f07c

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/mapnik_datasource.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ void export_datasource()
195195
"These vary depending on the type of data source.")
196196
.def(self == self)
197197
;
198+
register_ptr_to_python<std::shared_ptr<datasource> >();
198199

199200
def("CreateDatasource",&create_datasource);
200201

src/mapnik_feature.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,5 @@ void export_feature()
230230
.def("from_geojson",from_geojson_impl)
231231
.staticmethod("from_geojson")
232232
;
233+
register_ptr_to_python<std::shared_ptr<mapnik::feature_impl> >();
233234
}

src/mapnik_featureset.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ void export_featureset()
6363
// Python2 support
6464
.def("next", next)
6565
;
66+
register_ptr_to_python<std::shared_ptr<mapnik::Featureset> >();
6667
}

src/mapnik_geometry.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,4 +282,5 @@ void export_geometry()
282282
//.def("to_svg",&to_svg)
283283
// TODO add other geometry_type methods
284284
;
285+
register_ptr_to_python<std::shared_ptr<geometry<double>> >();
285286
}

src/mapnik_image.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,5 +467,6 @@ void export_image()
467467
.staticmethod("from_cairo")
468468
#endif
469469
;
470+
register_ptr_to_python<std::shared_ptr<image_any> >();
470471

471472
}

0 commit comments

Comments
 (0)