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:
parent
bfd27f6047
commit
e901058eba
1 changed files with 8 additions and 2 deletions
|
@ -150,9 +150,15 @@ feature_ptr shape_index_featureset<filterT>::next()
|
|||
while(!filter_.pass(shape_.current_extent()) &&
|
||||
itr_!=ids_.end())
|
||||
{
|
||||
if (shape_.type() != shape_io::shape_null) {
|
||||
pos=*itr_++;
|
||||
shape_.move_to(pos);
|
||||
}
|
||||
else
|
||||
{
|
||||
return feature_ptr();
|
||||
}
|
||||
}
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue