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()) &&
itr_!=ids_.end())
{
pos=*itr_++;
shape_.move_to(pos);
if (shape_.type() != shape_io::shape_null) {
pos=*itr_++;
shape_.move_to(pos);
}
else
{
return feature_ptr();
}
}
switch (type)