+ log Null geometry case ( via @TomH )

This commit is contained in:
artemp 2013-05-15 15:07:17 +01:00
parent 4dd1189ac8
commit c698079f5e

View file

@ -117,12 +117,17 @@ feature_ptr postgis_featureset::next()
++feature_id_;
}
// null geometry is not acceptable
if (rs_->isNull(0))
{
MAPNIK_LOG_WARN(postgis) << "postgis_featureset: null value encountered for geometry";
continue;
}
// parse geometry
int size = rs_->getFieldLength(0);
const char *data = rs_->getValue(0);
// parse geometry
if (geometry_utils::from_wkb(feature->paths(), data, size))
continue;