skip null geometries for indexed shapefiles (already skip for non-indexed) to avoid invalid reads - TODO - consider not adding to index to avoid need to skip

This commit is contained in:
Dane Springmeyer 2011-05-19 21:24:08 +00:00
parent bfd27f6047
commit e901058eba

View file

@ -150,8 +150,14 @@ feature_ptr shape_index_featureset<filterT>::next()
while(!filter_.pass(shape_.current_extent()) && while(!filter_.pass(shape_.current_extent()) &&
itr_!=ids_.end()) itr_!=ids_.end())
{ {
pos=*itr_++; if (shape_.type() != shape_io::shape_null) {
shape_.move_to(pos); pos=*itr_++;
shape_.move_to(pos);
}
else
{
return feature_ptr();
}
} }
switch (type) switch (type)