allow "null" values when genrating Feature GeoJSON
This commit is contained in:
parent
3397b8f14f
commit
8ce58ea29c
1 changed files with 5 additions and 5 deletions
|
@ -40,26 +40,26 @@ struct is_container<mapnik::feature_impl const> : mpl::false_ {} ;
|
||||||
template <>
|
template <>
|
||||||
struct container_iterator<mapnik::feature_impl const>
|
struct container_iterator<mapnik::feature_impl const>
|
||||||
{
|
{
|
||||||
using type = mapnik::feature_kv_iterator2;
|
using type = mapnik::feature_kv_iterator;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct begin_container<mapnik::feature_impl const>
|
struct begin_container<mapnik::feature_impl const>
|
||||||
{
|
{
|
||||||
static mapnik::feature_kv_iterator2
|
static mapnik::feature_kv_iterator
|
||||||
call (mapnik::feature_impl const& f)
|
call (mapnik::feature_impl const& f)
|
||||||
{
|
{
|
||||||
return mapnik::feature_kv_iterator2(mapnik::value_not_null(),f.begin(),f.end());
|
return f.begin();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct end_container<mapnik::feature_impl const>
|
struct end_container<mapnik::feature_impl const>
|
||||||
{
|
{
|
||||||
static mapnik::feature_kv_iterator2
|
static mapnik::feature_kv_iterator
|
||||||
call (mapnik::feature_impl const& f)
|
call (mapnik::feature_impl const& f)
|
||||||
{
|
{
|
||||||
return mapnik::feature_kv_iterator2(mapnik::value_not_null(),f.end(),f.end());
|
return f.end();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue