print null for features with value_null type in debugging output

This commit is contained in:
Dane Springmeyer 2012-12-11 18:06:53 -08:00
parent e928c483bf
commit a4f3be02b5

View file

@ -287,7 +287,14 @@ public:
std::size_t index = itr->second;
if (index < data_.size())
{
ss << " " << itr->first << ":" << data_[itr->second] << std::endl;
if (data_[itr->second] == mapnik::value_null())
{
ss << " " << itr->first << ":null" << std::endl;
}
else
{
ss << " " << itr->first << ":" << data_[itr->second] << std::endl;
}
}
}
ss << ")" << std::endl;