+ log Null geometry case ( via @TomH )
This commit is contained in:
parent
4dd1189ac8
commit
c698079f5e
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue