return geometry_type(geom)
This commit is contained in:
parent
f627b8ace3
commit
f54eb68063
1 changed files with 2 additions and 12 deletions
|
@ -26,7 +26,7 @@
|
||||||
// mapnik
|
// mapnik
|
||||||
#include <mapnik/value_types.hpp>
|
#include <mapnik/value_types.hpp>
|
||||||
#include <mapnik/value.hpp>
|
#include <mapnik/value.hpp>
|
||||||
|
#include <mapnik/geometry_type.hpp>
|
||||||
// stl
|
// stl
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
@ -53,17 +53,7 @@ struct geometry_type_attribute
|
||||||
template <typename V, typename F>
|
template <typename V, typename F>
|
||||||
V value(F const& f) const
|
V value(F const& f) const
|
||||||
{
|
{
|
||||||
mapnik::value_integer type = 0;
|
return new_geometry::geometry_type(f.get_geometry());
|
||||||
//for (auto const& geom : f.paths())
|
|
||||||
//{
|
|
||||||
// if (type != 0 && geom.type() != type)
|
|
||||||
// {
|
|
||||||
// return value_integer(4); // Collection
|
|
||||||
// }
|
|
||||||
// type = geom.type();
|
|
||||||
//}
|
|
||||||
// FIXME
|
|
||||||
return type;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue