remove silly string compare between features (attributes is more explicit)
This commit is contained in:
parent
867b454f10
commit
eb2393f6a3
3 changed files with 3 additions and 2 deletions
|
@ -226,7 +226,6 @@ void export_feature()
|
|||
class_<mapnik::feature_impl,std::shared_ptr<mapnik::feature_impl>,
|
||||
boost::noncopyable>("Feature",init<context_ptr,mapnik::value_integer>("Default ctor."))
|
||||
.def("id",&mapnik::feature_impl::id)
|
||||
.def("__str__",&mapnik::feature_impl::to_string)
|
||||
.def("add_geometries_from_wkb", &feature_add_geometries_from_wkb)
|
||||
.def("add_geometries_from_wkt", &feature_add_geometries_from_wkt)
|
||||
.def("add_geometry", &mapnik::feature_impl::add_geometry)
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
// stl
|
||||
#include <stdexcept>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
|
|
@ -30,8 +30,9 @@ if 'shape' in plugins and 'ogr' in plugins:
|
|||
import itertools
|
||||
for feat1,feat2 in itertools.izip(fs1, fs2):
|
||||
count += 1
|
||||
eq_(str(feat1),str(feat2))
|
||||
eq_(feat1.attributes,feat2.attributes)
|
||||
# TODO - revisit this: https://github.com/mapnik/mapnik/issues/1093
|
||||
# eq_(feat1.to_geojson(),feat2.to_geojson())
|
||||
#eq_(feat1.geometries().to_wkt(),feat2.geometries().to_wkt())
|
||||
#eq_(feat1.geometries().to_wkb(mapnik.wkbByteOrder.NDR),feat2.geometries().to_wkb(mapnik.wkbByteOrder.NDR))
|
||||
#eq_(feat1.geometries().to_wkb(mapnik.wkbByteOrder.XDR),feat2.geometries().to_wkb(mapnik.wkbByteOrder.XDR))
|
||||
|
|
Loading…
Add table
Reference in a new issue