diff --git a/bindings/python/python_grid_utils.hpp b/bindings/python/python_grid_utils.hpp index 28c97a8e2..2532ad1c7 100644 --- a/bindings/python/python_grid_utils.hpp +++ b/bindings/python/python_grid_utils.hpp @@ -122,7 +122,7 @@ void write_features(mapnik::grid::feature_type const& g_features, it->second.base()))); } } - else + else if ( (attributes.find(key) != attributes.end()) ) { found = true; feat[it->first] = boost::python::object(