Closed giantchen2012 closed 6 years ago
mapnik.Feature
doesn't have the method add_geometries_from_wkt()
. See
https://github.com/mapnik/python-mapnik/blob/8481096ebaa94e907a505c1dc6bebec4294ab19f/src/mapnik_feature.cpp#L213-L232
Try to use
geom = mapnik.Geometry.from_wkt(wkt)
instead, according to this test: https://github.com/mapnik/python-mapnik/blob/8481096ebaa94e907a505c1dc6bebec4294ab19f/test/python_tests/geometry_io_test.py#L310
alright, it works like a charm.
and i can made feature from geom by assign it to the geometry attribute of Feature
hi, guys, I use memorydatasource mapnik 3 and python 3, then result the problem as described in the title -- mapnik.Feature attribute error: no attribute "add_geometries_from_wkt", and also this post in stackoverflow. And more details in my code and my command lines as following:
output from commandline: