Revert "allow "null" values when genrating Feature GeoJSON"

This reverts commit 8ce58ea29c.
This commit is contained in:
artemp 2016-07-15 12:22:03 +01:00
parent 54d51e2728
commit 6f8f286b8d

View file

@ -40,26 +40,26 @@ struct is_container<mapnik::feature_impl const> : mpl::false_ {} ;
template <>
struct container_iterator<mapnik::feature_impl const>
{
using type = mapnik::feature_kv_iterator;
using type = mapnik::feature_kv_iterator2;
};
template <>
struct begin_container<mapnik::feature_impl const>
{
static mapnik::feature_kv_iterator
static mapnik::feature_kv_iterator2
call (mapnik::feature_impl const& f)
{
return f.begin();
return mapnik::feature_kv_iterator2(mapnik::value_not_null(),f.begin(),f.end());
}
};
template <>
struct end_container<mapnik::feature_impl const>
{
static mapnik::feature_kv_iterator
static mapnik::feature_kv_iterator2
call (mapnik::feature_impl const& f)
{
return f.end();
return mapnik::feature_kv_iterator2(mapnik::value_not_null(),f.end(),f.end());
}
};