return geometry_type(geom)

This commit is contained in:
artemp 2015-03-13 13:22:32 +01:00
parent f627b8ace3
commit f54eb68063

View file

@ -26,7 +26,7 @@
// mapnik
#include <mapnik/value_types.hpp>
#include <mapnik/value.hpp>
#include <mapnik/geometry_type.hpp>
// stl
#include <string>
#include <unordered_map>
@ -53,17 +53,7 @@ struct geometry_type_attribute
template <typename V, typename F>
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());
}
};