From f54eb680637cbf0518414a8a33cecfc8bdc6c97e Mon Sep 17 00:00:00 2001 From: artemp Date: Fri, 13 Mar 2015 13:22:32 +0100 Subject: [PATCH] return geometry_type(geom) --- include/mapnik/attribute.hpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/include/mapnik/attribute.hpp b/include/mapnik/attribute.hpp index e408640f4..730a90e71 100644 --- a/include/mapnik/attribute.hpp +++ b/include/mapnik/attribute.hpp @@ -26,7 +26,7 @@ // mapnik #include #include - +#include // stl #include #include @@ -53,17 +53,7 @@ struct geometry_type_attribute template V value(F const& f) const { - mapnik::value_integer type = 0; - //for (auto const& geom : f.paths()) - //{ - // if (type != 0 && geom.type() != type) - // { - // return value_integer(4); // Collection - // } - // type = geom.type(); - //} - // FIXME - return type; + return new_geometry::geometry_type(f.get_geometry()); } };